Subject: Re: [xsl] for-each select="position()" From: Abel Braaksma <abel.online@xxxxxxxxx> Date: Wed, 07 Feb 2007 00:17:30 +0100 |
The following appears to work with the latest Saxon in an XSLT v2 style sheet.
<xsl:for-each select="position()">
My take on this is that position() returns a number and that number is then used in a sequence of one. Am I understanding this correctly and should this be how all XSLT v2 processors behave?
<xsl:for-each select="//position()"> number: <xsl:value-of select="." /> </xsl:for-each>
<xsl:for-each select="self::node()/position()"> or <xsl:for-each select="current()/position()">
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] for-each select="position, Florent Georges | Thread | RE: [xsl] for-each select="position, Michael Kay |
Re: [xsl] for-each select="position, Florent Georges | Date | Re: [xsl] Newbie question on XSL tr, Rob Newman |
Month |