这个问题在这里已有答案:
我有以下匹配条件,用于在我发送的appName中存在值时获取结果:
<xsl:if test="contains($appName , $value)">
<xsl:call-template name="formResponseBody">
</xsl:call-template>
</xsl:if>
但是,现在我必须进行完全相同的测试但忽略“$ value”中数据的情况。
我已经尝试过使用翻译函数,但是他们要么转换为高位还是低位,但我的测试用例是数据值可以是“TEST”,“test”,“TesT”。
<xsl:variable name="lowercase">abcdefghijklmnopqrstuvwxyz</xsl:variable>
<xsl:variable name="uppercase">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
<xsl:variable name="value1" select="translate($value, $uppercase, $lowercase)">
这在XSLT 1.0中是否可行?