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

Subject: Re: self::-equivalent for attributes
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 08 Nov 2010 13:10:48 +0100
Christian Roth wrote:

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?

With XSLT 2.0 or later test="self::attribute(ns:par)"

--

	Martin Honnen
	http://msmvps.com/blogs/martin_honnen/

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