Article View: fr.comp.text.xml
Article #10143Re: Parser une feuille de Styles.
From: Tom.
Date: Tue, 12 Dec 2000 13:25
Date: Tue, 12 Dec 2000 13:25
23 lines
2040 bytes
2040 bytes
In article <thlZ5.2057$dP6.3755123@nnrp4.proxad.net>, "Rapha�l THERY" <raphael.thery@nordnet.fr> wrote: > Par contre je n'ai pas tr�s bien compris l'histoire du param�tre. > Quand je fais un > <xsl:template name="Traduction"> > <xsl:param name="terme" select="string()" /> > > cela signifie que lors de l'appel au template (<xsl:call-template>), > si je n'ai pas pr�cis� de param (avec <xsl:with-param name="terme" > ....) donc de valeur, il prend par d�faut la valeur string() du > <b>noeud courant</b> ..? Oui. Plus exactement, quand tu ne passes pas de param�tre, $terme a pour valeur le r�sultat de l'�valuation de l'attribut select. Il se trouve qu'ici c'est string(), donc "la valeur string() du noeud courant". Ceci pour �viter d'�ventuels malentendus : j'aurai tr�s bien plus mettre <xsl:param name="terme"><xsl:value-of select="."/></xsl:param> pour un r�sultat � peu pr�s �quivalent (ici on aurait eu un noeud de texte plutot qu'un objet XPath de type String). Tom. suffit de lire la Rec, j'invente rien.
Technical Details
Message-ID:
<ba8519.0n.ln@ptittom.free.fr>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!debian!ptittomReferences:
<1ROX5.921$X73.3283129@nnrp1.proxad.net> <g5ar09.sa1.ln@ptittom.free.fr> <GE0Z5.1706$g53.5464091@nnrp2.proxad.net> <dvg319.4v4.ln@ptittom.free.fr> <thlZ5.2057$dP6.3755123@nnrp4.proxad.net>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,2a6ed2f88cdee320 X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2000-12-12 05:25:51 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!proxad.net!feeder2.proxad.net!nnrp2.proxad.net.POSTED!debian!ptittom From: "Tom." <ptittom@free.fr> Subject: Re: Parser une feuille de Styles. Newsgroups: fr.comp.text.xml Organization: - References: <1ROX5.921$X73.3283129@nnrp1.proxad.net> <g5ar09.sa1.ln@ptittom.free.fr> <GE0Z5.1706$g53.5464091@nnrp2.proxad.net> <dvg319.4v4.ln@ptittom.free.fr> <thlZ5.2057$dP6.3755123@nnrp4.proxad.net> User-Agent: Pan/0.9.1 (Unix) X-No-Productlinks: Yes Message-ID: <ba8519.0n.ln@ptittom.free.fr> Lines: 23 Date: Tue, 12 Dec 2000 13:25:50 GMT NNTP-Posting-Host: 213.228.43.87 X-Complaints-To: abuse@proxad.net X-Trace: nnrp2.proxad.net 976627550 213.228.43.87 (Tue, 12 Dec 2000 14:25:50 CET) NNTP-Posting-Date: Tue, 12 Dec 2000 14:25:50 CET