This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Empty nodes


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]