|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XML -> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








