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

<pre><code>&lt;xsl:when test="$nextAnswerListItemPos &lt; $nextQuestionStemPos" &gt;
</code></pre>

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