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

How do I reference the name of a tag?

Subject: How do I reference the name of a tag?
From: jhbooth@xxxxxxxxxxxxx
Date: Wed, 31 May 2000 10:45:32 -0700
How do I reference the name of a tag?
If I have a source like this:

<sometag>blah</sometag>
<someothertag>blah blah</someothertag>

that I want to transform to:

<attribute name="sometag">
	<value>blah</value>
</attribute>
<attribute name="someothertag">
	<value>blah blah</value>
</attribute>

how can I get at the expanded-name of sometag and someothertag?

I don't want to have a template match for sometag, because I don't know in advance what all the possible tags could be, so I want a template to match * and still produce the above.

Any ideas?

thanks,
James Booth


 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.