Xml data island Template

If you made a template for printing or HTML export, you can offer it to the others here. You can also ask here for help about these templates
Post Reply
SAATCHI

Xml data island Template

Post by SAATCHI »

Salut le suivant est un template qu'il utilise la tecnologie xml date island,
donc il est seul compatible avec internet explorer.

Voilà le template:

<?xml version="1.0"?>
<film>
$$ITEM_BEGIN
<movie>
<numero>$$ITEM_NUMBER</numero>
<img>$$ITEM_PICTUREFILENAME</img>
<torig>$$ITEM_ORIGINALTITLE</torig>
<trad>$$ITEM_TRANSLATEDTITLE</trad>
<size>$$ITEM_SIZE</size>
<videoformat>$$ITEM_VIDEOFORMAT</videoformat>
<durata>$$ITEM_LENGTH</durata>
<dischi>$$ITEM_DISKS</dischi>
<descrizione>$$ITEM_DESCRIPTION</descrizione>
<videobitrate>$$ITEM_VIDEOBITRATE</videobitrate>
<audiobitrate>$$ITEM_AUDIOBITRATE</audiobitrate>
<risoluzione>$$ITEM_RESOLUTION</risoluzione>
</movie>
$$ITEM_END
</film>

pour utiliser ce template vous devait changer l'étendue du file d'exportation
en. xml ce file est la base de nos données à qui on accède par contre par la
page html suivant

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<style TYPE="text/css">
text,body,p,div,span,th,td,ul,li { FONT-SIZE: 10pt; FONT-FAMILY: Trebuchet MS, Verdana, Arial, Helvetica, sans-serif; color: black; background: white; }
HR { color: black; }
A:link { COLOR: #003399; background: white; }
A:visited { COLOR: #003399; background: white; }
A:hover { COLOR: #CC0000; background: white; }
A:active { COLOR: #CC0000; background: white; }
td.blk { color: white; background: black; border: solid; border-color: black; }
table.blk { color: white; background: black; border: solid; border-color: black; border-width: thin; }
table.lgt { color: black; background: white; border: solid; border-width: thin; border-color: #F5F5F5; }
td.lgt { color: black; background: white; border: solid; border-width: thin; border-color: #F5F5F5; }
p.title { font-size: 18pt; font-weight: bold; }
button { azimuth: inherit; elevation: higher; color: Red; background: #6495ED; pitch: high; width: 50px; font-weight: lighter; }

</style></head><body>
  <img src="saatchi.jpg"> <XML id="myMsg" src="films.xml"/>
<table id="table" class="blk" border="1" cellspacing="0" cellpadding="5" datasrc="#myMsg" summary="film-list" datapagesize="2">
<tr>
<td class="blk" nowrap>Locandina</td>
<td class="blk" nowrap>Titolo Originale</td>
<td class="blk" nowrap>Titolo Tradotto</td>
<td class="blk" nowrap>Dimensioni (Mb)</td>
<td class="blk" nowrap>Formato</td>
<td class="blk" nowrap>Durata (Min.)</td>
<td class="blk" nowrap>n° Dischi</td>
</tr>
<tr>
<td rowspan="6" class="lgt"><img datafld="img"/></IMG></td>
<td class="lgt"><strong><SPAN datafld="torig"/> </strong></td>
<td class="lgt"><SPAN datafld="trad"/> </td>
<td class="lgt"><SPAN datafld="size"/> </td>
<td class="lgt"><SPAN datafld="videoformat"/> </td>
<td class="lgt"><SPAN datafld="durata"/></td>
<td class="lgt"><SPAN datafld="dischi"/></td>
</tr>
<tr>
<td colspan="6" class="lgt"><SPAN datafld="descrizione"/> <br>
</td>
</tr>
<tr>
<td colspan="6" class="lgt">video bitrate: <SPAN datafld="videobitrate"/></td>
</tr>
<tr>
<td colspan="6" class="lgt">audio bitrate: <SPAN datafld="audiobitrate"/> </td>
</tr>
<tr>
<td colspan="6" class="lgt">risoluzione: <SPAN datafld="risoluzione"/></td>
</tr>
<tr>
<td colspan="7" class="blk"></td>
</tr>
</table>

<p align="right"><BR/>
<BUTTON onClick="table.firstPage()"><< </BUTTON>
<BUTTON onClick="table.previousPage()">< </BUTTON>
<BUTTON onClick="table.nextPage()">> </BUTTON>
<BUTTON onClick="table.lastPage()">>> </BUTTON>     
</p>
</body></html>

Un exemple peut être vu à l'adresse suivante http://spazioinwind.libero.it/ide/films/films.html

P.S. il remarque bien le file xml il doit être bien formé parce que le tout
fonctionne donc il faut remplacer tous les caractères spéciaux avec les
entities relatifs ou valeurs unicode, vous pouvez faire tout ceci
automatiquement en vous servant du logiciel html tidy.
Pardonnez-moi pour le mien Français détestable.

Salut SAATCHI
saatchi

errata corrige

Post by saatchi »

pour problèmes avec le server la vieille adresse ne fonctionne pas la nouvelle adresse plus voilà http://members.xoom.it/saatchi
Post Reply