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

RE: restructuring element hierarchy using xslt- compli

Subject: RE: restructuring element hierarchy using xslt- complications
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 30 Sep 2003 17:36:57 +0100
xslt change element name copy
> would i have to create new elements or is there a function to 
> change element names??

If you don't create new elements, there won't be any elements in the
result tree.

There are four ways of creating an element:

<lre>: use a literal result element if you know the name at compile time
<xsl:copy>: copies the element name (but not the content) from the
source document
<xsl:copy-of>: copies a whole subtree from the source document
<xsl:element>: computes both the element name and the content
dynamically

Take your pick, but all four methods create new elements.

Michael Kay


 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.