Parseur XML
ActiveX only
XML
XSL
Résultat
Prévisualisation
<Biblio> <Genre> <TitreGenre>Policier</TitreGenre> <Serie> <TitreSerie>XIII</TitreSerie> <Couverture>XIII</Couverture> <Editeur editREF="e1"/> <Ouvrage> <Tome>1</Tome> <TitreOuvrage>Le jour du soleil noir</TitreOuvrage> <Auteur autREF="a4"/> <Auteur autREF="a5"/> </Ouvrage> </Serie> </Genre> <Genre> <TitreGenre>Humour</TitreGenre> <Serie> <TitreSerie>Les Bidochon</TitreSerie> <Couverture>bidochon</Couverture> <Editeur editREF="e8"/> <Ouvrage> <Tome>1</Tome> <TitreOuvrage>Roman d amour</TitreOuvrage> <Auteur autREF="a31"/> </Ouvrage> <Ouvrage> <Tome>2</Tome> <TitreOuvrage>en vacances</TitreOuvrage> <Auteur autREF="a31"/> </Ouvrage> </Serie> </Genre> </Biblio>
<?xml version="1.0" encoding="iso-8859-1"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:template match="/"> <html><head> <style>IMG {height:18 ; width:18 ; border:1 ; vertical-align:bottom}</style> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr valign="top"><td> <img src="../images/menu_biblio.gif" /> Bibliothèque </td></tr> <xsl:apply-templates select="Biblio/Genre" /> </table> </body> </html> </xsl:template> <!-- règle concernant les éléments <Genre> --> <xsl:template match="Genre"> <tr valign="top"> <td> <img src="../images/menu_pixel.gif" /> <img src="../images/menu_genre.gif" /> <xsl:value-of select="TitreGenre"/> </td> </tr> <xsl:apply-templates select="Serie" /> </xsl:template> <!-- règle concernant l'élément <Serie> --> <xsl:template match="Serie"> <tr valign="top"> <td> <img src="../images/menu_pixel.gif" /> <img src="../images/menu_pixel.gif" /> <img src="../images/menu_serie.gif" /> <xsl:value-of select="TitreSerie"/> </td> </tr> <xsl:apply-templates select="Ouvrage" /> </xsl:template> <!-- règle concernant l'élément <Ouvrage> --> <xsl:template match="Ouvrage"> <tr valign="top"> <td> <img src="../images/menu_pixel.gif" /> <img src="../images/menu_pixel.gif" /> <img src="../images/menu_pixel.gif" /> <img src="../images/menu_ouvrage.gif" /> <xsl:value-of select="TitreOuvrage"/> </td> </tr> </xsl:template> </xsl:stylesheet>
Paramètre 1
Paramètre 2
Paramètre 3
Paramètre 4