Article View: fr.comp.text.xml
Article #10147HELP !!!! XSL / XSLT pourquoi des fois ca marche pas ????
From: choquet.olivier
Date: Tue, 12 Dec 2000 18:22
Date: Tue, 12 Dec 2000 18:22
58 lines
2351 bytes
2351 bytes
juste un exemple tir� du pr�cis XML de O'REILLY
le XML :
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XML Spy v3.5 beta 2 build Dec 1 2000
(http://www.xmlspy.com) by olivier choquet (private) -->
<?xml-stylesheet type="text/xsl" href="simple.xsl"?>
<texte>
<titre>Texte d'exemple</titre>
<section titre="premi�re section">
<para>Ceci est la premi�re section du texte.</para>
</section>
<section titre="Seconde section">
<para>Ceci est la seconde sectio du texte.</para>
</section>
</texte>
le XSL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="texte">
<html>
<head>
<title>
<xsl:value-of select="titre"/>
</title>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="titre">
<center>
<h1>
<xsl:apply-templates/>
</h1>
</center>
</xsl:template>
<xsl:template match="section">
<h3><xsl:value-of select="@titre"/></h3>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match ="para">
<p><xsl:apply-templates/></p>
</xsl:template>
</xsl:stylesheet>
et le r�sultat sous IE c'est une fen�tre vide avec :<xsl:value-of
select="titre"/> comme titre !!!
quelqu'u peut-il m'expliquer : pourquoi ? mais pourquoi ?
merci d'avance !!!!
choquet.olivier@wanadoo.fr
Technical Details
Message-ID:
<915qme$5o7$1@wanadoo.fr>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!isdnet!wanadoo.fr!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,b2d57b2f2d9332d9,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2000-12-12 10:28:29 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news-x.support.nl!isdnet!wanadoo.fr!not-for-mail From: "choquet.olivier" <choquet.olivier@wanadoo.fr> Newsgroups: fr.comp.text.xml Subject: HELP !!!! XSL / XSLT pourquoi des fois ca marche pas ???? Date: Tue, 12 Dec 2000 19:22:59 +0100 Organization: Wanadoo, l'internet avec France Telecom Lines: 62 Message-ID: <915qme$5o7$1@wanadoo.fr> NNTP-Posting-Host: compiegne-4-54.abo.wanadoo.fr X-Trace: wanadoo.fr 976645646 5895 164.138.11.54 (12 Dec 2000 18:27:26 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 12 Dec 2000 18:27:26 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400