xsl-list
[Top] [All Lists]

[xsl] iterate through attribute

2006-07-13 09:51:14
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(_at_)seipas(_dot_)com


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>