Each of these variables has an integer value. But this syntax is not valid for some reason:
<xsl:when test="$nextAnswerListItemPos < $nextQuestionStemPos" >
Each of these variables has an integer value. But this syntax is not valid for some reason:
<xsl:when test="$nextAnswerListItemPos < $nextQuestionStemPos" >
You have to use <
instead of <
and >
instead of >
, because those are reserved characters.
Also, in XSLT 2.0, you can use the operators "gt" (greater than), "lt" (less than), and "eq" (equal). Using these instead of the entities makes your code a bit cleaner.