RE: How to test if the current node is an attribute or a namespac e node?

Subject: RE: How to test if the current node is an attribute or a namespac e node?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 27 Nov 2000 10:37:14 -0000
> Which is the simplest XPath expression to test whether the 
> current node is an attribute?

Not easy! I'd suggest:

count(. | ../@*) = count(../@*)
> 
> Or a namespace?
> 
count(. | ../namespace::*) = count(../namespace::*)

Mike Kay


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


Current Thread