J'aurais voulu savoir ce que vous utilisiez comme outils pour le xml, la validation par xsd et la visualisation à l'aide de xsl.
En freeware si possible
Clair et bref
Merci
Mon probleme,
j'essaie les tutoriels de la w3schools pour le XSL.
Le hic est que la page ne donne pas correctement comme ceci . Elle n'affiche pas les noms de l'album...il doit y avoir un binz quelque part.
Le fichier XML
Le fichier XSL
D'où cela peut-il venir?
J'utilise Firefox, safari ou camino...
En freeware si possible
Clair et bref
Merci
Mon probleme,
j'essaie les tutoriels de la w3schools pour le XSL.
Le hic est que la page ne donne pas correctement comme ceci . Elle n'affiche pas les noms de l'album...il doit y avoir un binz quelque part.
Le fichier XML
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v2007 (http://www.altova.com) -->
<?xml-stylesheet type="text/xsl" href="cdcatalog2.xsl"?>
<CATALOG>
<CD>
<TITLE>Empire Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<COUNTRY>USA</COUNTRY>
<COMPANY>Columbia</COMPANY>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
</CD>
<CD>
<TITLE>Hide your heart</TITLE>
<ARTIST>Bonnie Tyler</ARTIST>
<COUNTRY>UK</COUNTRY>
<COMPANY>CBS Records</COMPANY>
<PRICE>9.90</PRICE>
<YEAR>1988</YEAR>
</CD>
</CATALOG>
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Edited with XML Spy v2007 (http://www.altova.com) -->
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method='html' version='1.0' encoding='UTF-8' indent='yes'/>
<xsl:template match="/">
<html>
<body>
<h2>My CD Collection</h2>
<table border="1">
<tr bgcolor="#9acd32">
<th align="left">Title</th>
<th align="left">Artist</th>
</tr>
<tr>
<td><xsl:value-of select="catalog/cd/title"/></td>
<td><xsl:value-of select="catalog/cd/artist"/></td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
J'utilise Firefox, safari ou camino...