Subject: Re: [xsl] self::-equivalent for attributes From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Mon, 08 Nov 2010 13:10:48 +0100 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] self::-equivalent for att, Michael Kay | Thread | Re: [xsl] self::-equivalent for att, Christian Roth |
Re: [xsl] self::-equivalent for att, Michael Kay | Date | re: [xsl] self::-equivalent for att, Vladimir Nesterovsky |
Month |