RE: [xsl] Retrieving the position of an ancestor in nested <xsl:for-each>

Subject: RE: [xsl] 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