こんにちは、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 を超えています。