Article View: fr.comp.text.xml
Article #9961Re: Aide � un novice
From: Vincent Croquette
Date: Tue, 09 Jan 2001 16:39
Date: Tue, 09 Jan 2001 16:39
51 lines
2293 bytes
2293 bytes
Je pense que tu melanges le XML avec le XSL il faut faire 2 docs separes un XML et un XSL "Yves HANRAS" <yves.hanras@m6net.fr> a �crit dans le message news: 93bv42$9fr$1@news2.isdnet.net... > 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:
<93feq3$53j$1@unlisys.unlisys.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!unlisys!news.snafu.de!not-for-mailReferences:
<93bv42$9fr$1@news2.isdnet.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,392910dcfe055b6c X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-01-09 08:38:28 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!216.227.56.88.MISMATCH!telocity-west!TELOCITY!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!unlisys!news.snafu.de!not-for-mail From: "Vincent Croquette" <vincent.croquette@reuters.com> Newsgroups: fr.comp.text.xml Subject: Re: Aide � un novice Date: Tue, 9 Jan 2001 17:39:44 +0100 Organization: [Posted via] Inter.net Germany GmbH Lines: 53 Message-ID: <93feq3$53j$1@unlisys.unlisys.net> References: <93bv42$9fr$1@news2.isdnet.net> NNTP-Posting-Host: web113.testbed.int.ch X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6600 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600