tags:

views:

27

answers:

1

So, using that

<xsl:for-each select="./@*">
   [<xsl:value-of/><xsl:value-of select="."/>]
</xsl:for-each>

I can iterate over attribute values. But I want to see attribute names too.

I want see a table: attr1 - val1 attr2 - val2 attr3 - val3 ...

Thanks for help!

+3  A: 

You can do that using name() or local-name():

<xsl:for-each select="./@*">
    [<xsl:value-of select="name()"/><xsl:value-of select="."/>]
</xsl:for-each>
0xA3
first is best) thank you!
dart