xsl-list
[Top] [All Lists]

Re: name of attributes like name() function for elements?

2002-12-05 08:46:47
Sorry, my first reply only went to Jeni personally:

| Thanks Jeni,
|
| I found out what went wrong: I tested my stylesheet with xsltproc,
| and well, it seems to have a bug. With saxon it works indeed!
|
| Regards,
| Georges
|

Jeni Tennison wrote:
Hi Georges,


Is it possible to get the name of an attribute in the same way, as
with the name() function for elements?


The name() function works for attributes (and indeed all nodes) as
well as for elements. Try:

<xsl:key name="insert.template.attr" match="@*" use="name()"/>

Cheers,

Jeni


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