Philipp Kraus
Usenet Archive
- Joined
- Oct 16, 2009
- Messages
- 176
- Reaction score
- 0
Hello,
I would like to work with XSLT (2.0). I have got code like
<xsl:template name="item">
<xsl:text>?? test</xsl:text>
</xsl:template>
and different matches in another file
<xsl:template match="node1"
<xsl:call-template name="item"/>
</xsl:template>
<xsl:template match="node2"
<xsl:call-template name="item"/>
</xsl:template>
my XML document shows eg
<node1>
</node1>
<node1>
<node2>
<node1/>
</node2>
</node1>
I would like to push the number of the recursiv-template matches of the item template on the position of ??. In the example XML I will get the numbers 1, 1, 2, 3 The item template should count itself the number of its recursiv calls
Thanks a lot
Phil
I would like to work with XSLT (2.0). I have got code like
<xsl:template name="item">
<xsl:text>?? test</xsl:text>
</xsl:template>
and different matches in another file
<xsl:template match="node1"
<xsl:call-template name="item"/>
</xsl:template>
<xsl:template match="node2"
<xsl:call-template name="item"/>
</xsl:template>
my XML document shows eg
<node1>
</node1>
<node1>
<node2>
<node1/>
</node2>
</node1>
I would like to push the number of the recursiv-template matches of the item template on the position of ??. In the example XML I will get the numbers 1, 1, 2, 3 The item template should count itself the number of its recursiv calls
Thanks a lot
Phil