How to Position the Next Brother

I need to select the position of the next sibling via XSL.

This does not work:

<xsl:variable name="nextAnswerListItemPos" select="following-sibling::*[local-name() = 'AnswerListItem'][position()]" />

      

+1


source to share


1 answer


<xsl:variable name="nextAnswerListItemPos" select="count(following-sibling::*[local-name() = 'AnswerListItem'][1]/preceding-sibling::*) + 1" />

      



+3


source







All Articles