Article View: fr.comp.text.xml
Article #10168Re: help xml+xsl
From: lionel
Date: Thu, 23 Nov 2000 00:00
Date: Thu, 23 Nov 2000 00:00
86 lines
2636 bytes
2636 bytes
voir plus loin ..... Didier <plagnes@wanadoo.fr> a �crit dans le message : 8vh6r2$a7d$1@wanadoo.fr... > > Bonjour, > > j'ai un fichier xml associ� a un fichier xsl. > Sous IE 5.0 ( et 5.5) quand je lance le fichier xml, celui ci n'affiche pas > la liste des articles, le tableau reste vide, seule la colonne des titres > apparait. > Pouvez vous m'aider ? > > Merci > Didier > > le fichier livres.xml > > <?xml-stylesheet type="text/xsl" href="livres.xsl" version="1.0"?> > > <bibliotheque> > <livre ref="A1000"> > <titre>Pierre: The Ambiguities</titre> > <auteur>Herman Melville</auteur> > <prix>99.00</prix> > </livre> > <livre ref="A1001"> > <titre>Heart of Darkness</titre> > <auteur>Joseph Conrad</auteur> > <prix>120.00</prix> > </livre> > <livre ref="A1002"> > <titre>Arrowsmith</titre> > <auteur>Sinclair Lewis</auteur> > <prix>78.00</prix> > </livre> > </bibliotheque> > > le fichier livres.xsl > > <?xml version="1.0"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > version="1.0"> *****essaye avec ceci :<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl"> > > <xsl:template match="/"> > <html> > <head> > <title>Tigris Products</title> > </head> > <body bgcolor="#000000FF"> > <p><font size="7">Liste des livres</font></p> > <xsl:apply-templates select="bibliotheque"/> > </body> > </html> > </xsl:template> > > <xsl:template match="bibliotheque"> > <table width="100%" border="2"> > <tr> > <td>TITRE</td> > <td>AUTEUR</td> > <td>PRIX</td> > </tr> > <xsl:for-each select="livre"> > <tr> > <td><xsl:value-of select="titre"/></td> > <td><xsl:value-of select="auteur"/></td> > <td><xsl:value-of select="prix"/></td> > </tr> > </xsl:for-each> > </table> > </xsl:template> > > </xsl:stylesheet> > > > > > > >
Technical Details
Message-ID:
<Ek4T5.580$Td6.969800@nnrp2.proxad.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<8vh6r2$a7d$1@wanadoo.fr>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,98d203124889ba60 X-Google-Attributes: gid114f60,public From: "lionel" <goubetli@voila.fr> Subject: Re: help xml+xsl Date: 2000/11/23 Message-ID: <Ek4T5.580$Td6.969800@nnrp2.proxad.net> X-Deja-AN: 696980315 References: <8vh6r2$a7d$1@wanadoo.fr> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@proxad.net X-Trace: nnrp2.proxad.net 974967204 212.234.83.243 (Thu, 23 Nov 2000 09:13:24 CET) Organization: Guest of ProXad - France X-MSMail-Priority: Normal NNTP-Posting-Date: Thu, 23 Nov 2000 09:13:24 CET Newsgroups: fr.comp.text.xml