xsl-list
[Top] [All Lists]

Re: [xsl] self::-equivalent for attributes

2010-11-08 06:11:09
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/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>