How do I tell if a variable in xslt is greater tha

2019-01-25 03:17发布

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

<xsl:when test="$nextAnswerListItemPos < $nextQuestionStemPos" >

标签: xslt
2条回答
看我几分像从前
2楼-- · 2019-01-25 03:34

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

查看更多
倾城 Initia
3楼-- · 2019-01-25 03:39

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.

查看更多
登录 后发表回答