Each of these variables has an integer value. But this syntax is not valid for some reason:
这些变量中的每一个都具有整数值。但是这种语法由于某种原因无效:
<xsl:when test="$nextAnswerListItemPos < $nextQuestionStemPos" >
2 个解决方案
#1
46
You have to use <
instead of <
and >
instead of >
, because those are reserved characters.
你必须使用<而不是 <和>而不是> ,因为那些是保留字符。
#2
9
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.
此外,在XSLT 2.0中,您可以使用运算符“gt”(大于),“lt”(小于)和“eq”(相等)。使用这些代替实体可以使代码更清晰。
#1
46
You have to use <
instead of <
and >
instead of >
, because those are reserved characters.
你必须使用<而不是 <和>而不是> ,因为那些是保留字符。
#2
9
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.
此外,在XSLT 2.0中,您可以使用运算符“gt”(大于),“lt”(小于)和“eq”(相等)。使用这些代替实体可以使代码更清晰。