This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to test if the current node is an attribute or a namespace node?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: How to test if the current node is an attribute or a namespace node?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 27 Nov 2000 10:37:14 -0000
- Reply-To: xsl-list at mulberrytech dot com
> 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