Off the top of my head it seems the easiest would be to use the translate
function within the select attribute of a variable to convert spaces into
non-spaces (nothing) and then use a simple boolean test to determine what to do
next if it returns false... For example...
<xsl:variable name="testWhiteSpace" select="translate(foo/bar, ' ', '')" />
<xsl:if test="$testWhiteSpace">
...do something
</xsl:if>
Untested.
Hope this helps!
<M:D/>
Ralph Holz wrote:
Hi,
is there a way to check if a given value is whitespace(s) only? A
function maybe?
Thanks,
Ralph
--+------------------------------------------------------------------
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>
--+--