This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Testing for CDATA
- To: xsl-list at mulberrytech dot com
- Subject: Re: Testing for CDATA
- From: Mike Brown <mike at skew dot org>
- Date: Tue, 8 Aug 2000 13:59:14 -0600 (MDT)
- Reply-To: xsl-list at mulberrytech dot com
Jeni Tennison wrote:
>
> test="normalize-space(text()) != ''"
>
It's usually not necessary to compare an unknown string to an empty
string, because if the unknown string is empty, as a boolean it will be
false already. So test="normalize-space(text())" would work just as well.
- Mike
____________________________________________________________________
Mike J. Brown, software engineer at My XML/XSL resources:
webb.net in Denver, Colorado, USA http://www.skew.org/xml/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list