Article View: fr.comp.text.xml
Article #9445Re: Problème XSLT/XPath
From: Tom.
Date: Fri, 06 Apr 2001 15:12
Date: Fri, 06 Apr 2001 15:12
15 lines
1500 bytes
1500 bytes
In <wkofu9r8te.fsf@emn.fr>, Pierre-Charles David wrote:
> <xsl:for-each select="$unique-themes">
> <h2><xsl:value-of select="."/></h2>
> <xsl:apply-templates select="//article[@theme=.]"> <!-- probleme ici
> -->
> <xsl:sort select="@id"/>
> </xsl:apply-templates>
> </xsl:for-each>
Dans ce contexte, le . r�f�re � l'article sur lequel est �valu� le
pr�dicat, ce n'est pas le noeud courant de $unique-themes.
Pour �a, il faut utiliser la fonction current() :
<xsl:apply-templates select="//article[@theme=current()]">...
Tom.
Technical Details
Message-ID:
<1828370.mLvFx2qVVI@ltgt.net>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2.proxad.net!nnrp5.proxad.net.POSTED!not-for-mailReferences:
<wkofu9r8te.fsf@emn.fr>Show Full Headers
Complete Article Headers
X-Google-Language: FRENCH,ASCII X-Google-Thread: 114f60,91dcbae30b4ee193 X-Google-Attributes: gid114f60,public X-Google-ArrivalTime: 2001-04-06 08:12:50 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!213.56.195.71!fr.usenet-edu.net!usenet-edu.net!proxad.net!feeder2.proxad.net!nnrp5.proxad.net.POSTED!not-for-mail Message-ID: <1828370.mLvFx2qVVI@ltgt.net> From: Tom. <ptittom+news@free.fr> Subject: Re: Problème XSLT/XPath Newsgroups: fr.comp.text.xml References: <wkofu9r8te.fsf@emn.fr> Lines: 15 Organization: </> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8Bit Date: Fri, 06 Apr 2001 15:12:39 GMT NNTP-Posting-Host: 193.252.183.232 X-Complaints-To: abuse@proxad.net X-Trace: nnrp5.proxad.net 986569959 193.252.183.232 (Fri, 06 Apr 2001 17:12:39 CEST) NNTP-Posting-Date: Fri, 06 Apr 2001 17:12:39 CEST