Article View: fr.comp.text.xml
Article #10038Aide � un novice
From: Yves HANRAS
Date: Mon, 08 Jan 2001 08:51
Date: Mon, 08 Jan 2001 08:51
43 lines
1971 bytes
1971 bytes
Bonjour,
1) j'utilise internet explorer 5.5 sous Windows Me. Pour programmer avec
XSLT faut-il installer quelque chose d'autre ?
2) j'ai cr�er le fichier test.xlm :
<?xml version="1.0" ?>
<?xml-stylesheet href="#Style" type="text/xsl" ?>
<doc>
<xsl:stylesheet id="Style" version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="p1">
<xsl:text>texte : </xsl:text>
<xsl:value-of select="@text"/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="p2">
<xsl:text>, p2</xsl:text>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
<p1 text="Bonjour"/>
<p1 text="Bonsoir"/>
<p2/>
</doc>
je m'attends � avoir comme r�sultat :
texte : Bonjour texte : Bonsoir, p2
je n'ai que :
texte : , p2
3) si j'interverti les d�clarations des templates p1 et p2, le r�sultat
obtenu est :
,p2 texte :
4) si j'utilise les instructions de formatage (<fo:..>) aucun effet.
pouvez vous m'expliquer ?
merci
-----------------------------------
yves.hanras@m6net.fr
Technical Details
Message-ID:
<93bv42$9fr$1@news2.isdnet.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeed1!isdnethub!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,392910dcfe055b6c,start X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-01-08 00:58:02 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!freenix!isdnet!newsfeed1!isdnethub!not-for-mail From: "Yves HANRAS" <yves.hanras@m6net.fr> Newsgroups: fr.comp.text.xml Subject: Aide � un novice Date: Mon, 8 Jan 2001 09:51:29 +0100 Lines: 46 Message-ID: <93bv42$9fr$1@news2.isdnet.net> NNTP-Posting-Host: 212.225.132.138 X-Trace: news2.isdnet.net 978943938 9723 212.225.132.138 (8 Jan 2001 08:52:18 GMT) X-Complaints-To: abuse@isdnet.net NNTP-Posting-Date: 8 Jan 2001 08:52:18 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