您好我想知道 XSLT 1.0 和 XPath 1.0 中是否有任何函数可以像 java 的 Appache StringUtils.isBlank(String str)
我使用: 编辑:
<xsl:variable name="attributeNameValue" select="$sourceObject/attr[@name = $sourceName]" />
<xsl:if test="$attributeNameValue and not($attributeNameValue='')">
<!-- Do something-->
</xsl:if>
但是我在我的所有模板中都有超过 100 个检查,想知道如何更快地删除它?