[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE:

Subject: RE:
From: Stuart Brown <sbrown@xxxxxxxxxxxxx>
Date: Wed, 28 Aug 2002 11:52:02 +0100
stuart brown
<xsl:for-each select="@*">

Cheers,

Stuart

> -----Original Message-----
> From: stardust@xxxxxxxxxx [mailto:stardust@xxxxxxxxxx]
> Sent: 05 August 2002 21:32
> To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx
> Subject: 
> 
> 
> 
> Hi,
> 
> I need to write a generic xsl script that outputs all the xml 
> tag names, attributes and values given any xml file. the 
> exact structure and content of the xml file is not know 
> before hand. Basically I need to output the follow:
> 
> - tag name
> - attribute names and attribute values
> - value of the tag
> 
> i.e.
> 
> input
> world
> 
> output:
> tag = hello
> attribute: x, value: 1
> attribute: y, vlaue: 2
> value: world
> 
> 
> I am able to iterate through all the tags and the tag values. 
> However, I can't find a generic way to iterate through all 
> the attributes of a tag. Is there anyway to iterate through 
> all the attributes of a tag?
> 
> 
> 
> 
> 
> ------------------------------------------------
> Join Excite! - http://www.excite.com
> The most personalized portal on the Web!
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.