xsl-list
[Top] [All Lists]

RE: Is this node, the document root... best test?

2003-10-20 09:58:09

Would this make....

<xsl:when test=". = /">This the best test then?</xsl:when>


This tests whether the string value of the content node is the same as
the string value of the root. This is potentially a very expensive test,
and it's wrong. For example it would return true for all the elements in
the document

<a><b><c><d/><e/></c></b></a>

Michael Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list