This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Empty nodes
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Empty nodes
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 4 Jul 2001 14:33:06 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> You make me confuse ... :)
> Do you mind to give us some examples of
> 1. "has no child nodes"
> 2. "has zero-length string value"
> 3. "has no child elements or text nodes"
<a/> satisfies 1,2, and 3
<a><b/></a> satisfies 2
<a><!--comment--></a> satisfies 2 and 3.
Attributes, on these definitions, make no difference. But of course you are
perfectly entitled to define "empty" as meaning "has no attributes", if
that's what you want to test for.
PS, please tell your legal department to stop adding this junk to your mail.
I haven't read it, and I hereby give notice that I regard it as having no
legal effect. And the same applies to everyone else.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list