[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] self::-equivalent for attributes


Subject: [xsl] self::-equivalent for attributes
From: "Christian Roth" <roth@xxxxxxxxxxxxxx>
Date: Mon, 8 Nov 2010 12:48:18 +0100

Hi,

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?

-chris


Current Thread