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

RE: XML -> XSL -> same XML

Subject: RE: XML -> XSL -> same XML
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Thu, 9 Mar 2000 19:20:37 -0000
xsl same xml
Several people have replied with answers using xsl:copy, but if you want to
copy an entire subtree, it's easier to use xsl:copy-of:

<xsl:template match="/">
	<header/>
	<xsl:copy-of select="."/>
	<footer/>
</xsl:template>

Many people miss this because the spec's description of xsl:copy-of is
strangely-worded and in the wrong place.

Mike Kay

 
> How do I transform an XML with an XSL that spits out the same 
> XML document
> that was inputted, except with a particular heading or 
> footer.  


 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.