Hi

This might help (from XSLT 1.0 spec):

NOTE:When a variable is used to select nodes by position, be careful not to do:
<xsl:variable name="n">2</xsl:variable>
...
<xsl:value-of select="item[$n]"/>

This will output the value of the first item element, because the variable n will be bound to a result tree fragment, not a number. Instead, do either
<xsl:variable name="n" select="2"/>
...
<xsl:value-of select="item[$n]"/>

or
<xsl:variable name="n">2</xsl:variable>
...
<xsl:value-of select="item[position()=$n]"/>


This line might be the cause of the problem:  <xsl:with-param name="Index"><xsl:value-of
select="$Index+1"/></xsl:with-param>



Joanne Tong
Software Developer, XSLT Development, IBM Toronto Lab

Reply via email to