This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: iterating through attributes


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]