xsl-list
[Top] [All Lists]

[xsl] How to test if existing tag/node contains a non-whitespace value?

2009-12-09 13:38:32
Assume a template matches a input tag like

<aaa>(0 or more whitespaces)</aaa>

How can I test if this node contains a non-whitespace value?
It should be something similar to:

<xsl:if test="aaa=''">
Found a value
</xsl:if>

or

<xsl:if test="normalize-space(aaa)">
Found a value
</xsl:if>

Ben













--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--