basically I've got a XSLT in which I need to use the index number of all the nodes in the xml.
in the xml:
<base>
<sect>
<stuff></stuff>
<sect>
<sect>
<sect>
</base>
in the xslt:
<xsl:template match="sect">
<xsl:value-of select=".[index]"/>
</xsl:template>
where the .[index] would give the index of that node from the base, so in the above example I'd get 1 and 3...
is this at all possible?
Thanks
--------------------
Procrastinate Now!
in the xml:
<base>
<sect>
<stuff></stuff>
<sect>
<sect>
<sect>
</base>
in the xslt:
<xsl:template match="sect">
<xsl:value-of select=".[index]"/>
</xsl:template>
where the .[index] would give the index of that node from the base, so in the above example I'd get 1 and 3...
is this at all possible?
Thanks
--------------------
Procrastinate Now!