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: testing for child nodes


> I want to to be able to test for a node that has no child
> nodes but could
> possibly have attributes.
>       <xsl:when test="node()!=text() and not(child::node())">

I haven't followed all your logic, but I'm sure this isn't what you mean.

node()!=text() will be true if the current element has a child text node and
another child node whose string values are unequal; if this condition is
true then not(child::node()) will always be false.

Mike Kay


 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]