This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: iterating through attributes
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 6 Aug 2002 09:17:16 +0100
- Subject: [xsl] RE: iterating through attributes
- Reply-to: xsl-list at lists dot mulberrytech dot com
>
> I need to write a generic xsl script that outputs all the xml
> tag names, attributes and values given any xml file.
You will find it easier to find information in the index of a book (or
by searching the web) if you learn the correct terminology. Let's talk
about elements, not tags. (Most elements have two tags, a start tag and
an end tag, but empty elements may be written with a single tag).
> However, I can't find a generic way to iterate through all
> the attributes of a tag.
<xsl:for-each select="@*">
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list