xsl-list
[Top] [All Lists]

Re: [xsl] iterate through attribute

2006-07-13 09:53:45

<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

--~------------------------------------------------------------------
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>