[xsl] iterate through attribute

Subject: [xsl] iterate through attribute
From: Arthur Maloney <ArthurM@xxxxxxxxxx>
Date: Thu, 13 Jul 2006 17:51:52 +0100
Hello xsl-list,

<root>
  <option a1="1" a2="2" a3="4" ... a50="50"/>
</root>

What a good way to iterate through the attributes?


<xsl:for-each select="???">  <!-- a1 to a50 -->

<xsl:???/> <!-- gives name of attribute -->
<xsl:value-of select="???"/>   <!-- gives value of attribute -->

</xsl:for-each>

-- 
Best regards,
 Arthur                          mailto:ArthurM@xxxxxxxxxx

Current Thread