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 13:49:25 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> My questions are :
> 1. is <b code="123"/> is empty node just like <c/> ?
There's no such thing as an "empty node" defined in the XPath data model, so
you can define the term any way you like. Popular definitions include "has
no child nodes", "has zero-length string value", "has no child elements or
text nodes". These are all different, for example
<e><!-- comment --></e> is empty under the second and third definitions but
not the first.
> 2. what's wrong with my not() function ?
not(.) is true if the current node does not exist. But it always does.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list