xsl-list
[Top] [All Lists]

can you select name() of attributes?

2004-07-27 02:27:41
Hi again,

In the question earlier (Mathing attributes in two different documents), I think it drops down to the following: can you select name() of attributes in a select attribute in an xsl element?

Like:
<xsl:variable name="Attr" select="$Doc/@*"/> which selects all attributes in the Doc variable (which are text values as far as I know...?)

I want something that selects all the names of the attributes. Is something like the following possible?
<xsl:variable name="Attr" select="$Doc/@*/name()"/> or
<xsl:variable name="Attr" select="$Doc/name(@*)"/>

I want to be able to use the name of the attributes in the same way as a reqular nodeset, where I can say node-A=nodeset-B which in a nodeset is true if just one node in nodeset-B is equal to node-A.

Regards,
Ragulf Pickaxe :-|

_________________________________________________________________
MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus