I'm having difficulty working this out and wondered if anybody would be kind enough to point me in the right direction (or just tell me how to do it) 
I need to have a nested <xsl:for-each> statement where I can access the position() of the parent node.
For example...<xsl:for-each select="PARENTNODE">
<xsl:for-each select="CHILDNODE">
<xsl:value-of select="position()"/>-<xsl:value-of="../position()">
</xsl:for-each>
</xsl:for-each>The above doesn't work (Ie. "../position()"), but it hopefully shows what I'm after.
Any ideas?
Tom

I need to have a nested <xsl:for-each> statement where I can access the position() of the parent node.
For example...<xsl:for-each select="PARENTNODE">
<xsl:for-each select="CHILDNODE">
<xsl:value-of select="position()"/>-<xsl:value-of="../position()">
</xsl:for-each>
</xsl:for-each>The above doesn't work (Ie. "../position()"), but it hopefully shows what I'm after.
Any ideas?
Tom
