I want to assign the position of the first my-element that is greater than $start-position. However, the following code adds the position of every element to the variable's value and I end up with a long list of numbers. How do I only select the first position() ?
Code:
<xsl:variable name = "my-position"
<xsl:for-each select="//my-element">
<xsl:if test="position() > $start-position">
<xsl:value-of select = "position()"/>
</xsl:if>
</xsl:for-each>
</xsl:variable>