xsl-list
[Top] [All Lists]

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

2004-05-04 04:10:29
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)


<Prev in Thread] Current Thread [Next in Thread>