[Home] [By Thread] [By Date] [Recent Entries]

Subject: RE: Retrieving the position of an ancestor in nested <xsl:for-each>
From: <Jarno.Elovirta@xxxxxxxxx>
Date: Tue, 4 May 2004 14:10:29 +0300
Hi,

Use a variable to store the node position.

> <xsl:for-each select="Node">
>   ...
     <xsl:variable name="node-position" select="position()"/>
>   <xsl:for-each select="SubNode">
       Position of Node: <xsl:value-of select="$node-position"/>

Cheers,

Jarno - Suicide Commando: Face Of Death (InterSekt Edit By Tactical Sekt)

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member