Article View: fr.comp.text.xml
Article #10166help xml+xsl
From: Didier
Date: Wed, 22 Nov 2000 00:00
Date: Wed, 22 Nov 2000 00:00
70 lines
2286 bytes
2286 bytes
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">
<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:
<8vh6r2$a7d$1@wanadoo.fr>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,98d203124889ba60,start X-Google-Attributes: gid114f60,public From: "Didier" <plagnes@wanadoo.fr> Subject: help xml+xsl Date: 2000/11/22 Message-ID: <8vh6r2$a7d$1@wanadoo.fr> X-Deja-AN: 696777531 X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 X-Complaints-To: abuse@wanadoo.fr X-Trace: wanadoo.fr 974921378 10477 193.252.32.120 (22 Nov 2000 19:29:38 GMT) Organization: Wanadoo, l'internet avec France Telecom X-MSMail-Priority: Normal Reply-To: "Didier" <plagnes@wanadoo.fr> NNTP-Posting-Date: 22 Nov 2000 19:29:38 GMT Newsgroups: fr.comp.text.xml