[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: iterate through attribute
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 13 Jul 2006 17:53:32 +0100
<xsl:for-each select="???">  <!-- a1 to a50 -->
select="@*"
selects all the attributes (in whatever order they are in teh input
tree, which may not be the same order as they are in the file, as that
information is lost)

Just as for elements, if the current node is an attribute 
<xsl:value-of select="."/>  gives itsvalue and
<xsl:value-of select="name()"/> gives its name

David

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member