tags:

views:

1337

answers:

2

Each of these variables has an integer value. But this syntax is not valid for some reason:

<xsl:when test="$nextAnswerListItemPos < $nextQuestionStemPos" >
+1  A: 

You have to use &lt; instead of < and &gt; instead of >, because those are reserved characters.

efficientjelly
+1  A: 

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.

James Sulak