This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: testing for null string in a node
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: testing for null string in a node
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Tue, 7 Nov 2000 16:34:57 -0000
- Reply-To: xsl-list at mulberrytech dot com
> I want to be able to test if the value of a certain node is empty
Depends what you mean by empty.
Contains no child nodes: not(node())
Contains no text content: not(string(.))
Contains no text other than whitespace: not(normalize-space(.))
Contains nothing except comments: not(node()[not(self::comment())])
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list