This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Testing for CDATA
- To: Allen Haws <joeshmoe at unicon dot net>
- Subject: Re: Testing for CDATA
- From: Jeni Tennison <jeni at friday dot u-net dot com>
- Date: Tue, 08 Aug 2000 19:56:32 +0100
- Cc: xsl-list at mulberrytech dot com
- References: <93CB64052F94D211BC5D0010A800133104B4DAC6@wwmess3.bra01.icl.co.uk>
- Reply-To: xsl-list at mulberrytech dot com
Allen,
>But since there is a text node as a child, it's always true.
I'm not sure, as I didn't keep a record of your previous post, but you're
probably after a text node that doesn't consist of just whitespace. Try:
test="normalize-space(text()) != ''"
I hope that helps,
Jeni
Dr Jeni Tennison
Epistemics Ltd * Strelley Hall * Nottingham * NG8 6PE
tel: 0115 906 1301 * fax: 0115 906 1304 * email: jeni.tennison@epistemics.co.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list