如何判断 xslt 中的变量是否大于另一个 [英] How do I tell if a variable in xslt is greater than another

查看:23
本文介绍了如何判断 xslt 中的变量是否大于另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这些变量中的每一个都有一个整数值.但由于某种原因,此语法无效:

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

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

推荐答案

你必须使用 &lt; 而不是 <> 而不是 >,因为它们是保留字符.

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

这篇关于如何判断 xslt 中的变量是否大于另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆