Subject: Re: [xsl] xsl:key on variable containing result of apply-templates From: Grainne Reilly <greilly1@xxxxxxxxx> Date: Mon, 25 Nov 2002 02:24:02 -0500 |
>..<snip/>... > The key declaration must be then: > <xsl:key name="alphabets" match="alphabet" use="@col"/> > > And later the usage of key(): > <xsl:template match="numbers"> > <xsl:for-each select="number"> > <xsl:variable name="curPosition" select="position()"/> > <xsl:for-each select="$alphabet-exslNodeSet"> > <!-- context changed to converted node set --> > <xsl:copy-of select="key('myKey', $curPosition)"/> > </xsl:for-each> > </xsl:for-each> ></xsl:template> >...<snip/>...
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] how can I deal with the x, Wang Ning | Thread | Re: [xsl] xsl:key on variable conta, Grainne Reilly |
Re: [xsl] XSLT to generate C# typed, Richard Smith | Date | Re: [xsl] numbers and XPath, Endre, MAGYARI |
Month |