[Home] [By Thread] [By Date] [Recent Entries]

Subject: re: self::-equivalent for attributes
From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 8 Nov 2010 04:36:33 -0800
> to test if the context node is (e.g.) an ns:par element you usually 
write:
> 
>   test="self::ns:par"
> 
> What's the equivalent for attributes, that is how do you test if the
> context node is an ns:attr attribute? Is there a similar concise 
expression?

test="self::attribute(ns:par)"
--
Vladimir Nesterovsky
http://www.nesterovsky-bros.com

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member