Each of these variables has an integer value. But this syntax is not valid for some reason:
<xsl:when test="$nextAnswerListItemPos < $nextQuestionStemPos" >
You're always safe using > here, although some XSLT processors process the greater-than sign correctly if you use > instead. If you need to use the less-than operator ( < ), you'll have to use the < entity.
The difference is that the value of an xsl:param could be set outside the context in which it is declared.
Definition and Usage. The <xsl:number> element is used to determine the integer position of the current node in the source. It is also used to format a number.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With