xsl-list
[Top] [All Lists]

Re: Attribute as a Variable

2002-10-11 13:45:05
Hi Suvarna,

I dont know the attribute name beforehand but is avaiable as a
variable $currAttr.

Select all of the attributes on the $currNode:

  $currNode/@*

and then filter them with a predicate that tests whether their name()
is equal to $currAttr:

  $currNode/@*[name() = $currAttr]

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list