This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE:
- From: Stuart Brown <sbrown at extenza dot co dot uk>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Wed, 28 Aug 2002 11:52:02 +0100
- Subject: [xsl] RE:
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:for-each select="@*">
Cheers,
Stuart
> -----Original Message-----
> From: stardust@excite.com [mailto:stardust@excite.com]
> Sent: 05 August 2002 21:32
> To: XSL-List@lists.mulberrytech.com
> 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