[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: xsl:copy
If you need an exact copy (of an element and all its descendants), then use xsl:copy-of. However, if you need to make any changes anywhere in the structure, you'll need to do a recursive descent: it's useful here to use the "identity template rule" which you'll find the W3C XSLT spec. Michael Kay Software AG home: Michael.H.Kay@xxxxxxxxxxxx work: Michael.Kay@xxxxxxxxxxxxxx > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Garrick > Besterwitch > Sent: 19 February 2002 06:09 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: xsl:copy > > > Hi, > I need to generate a copy of an xml file using xsl ...I tried using > xsl:copy..but this gives me only the value and not the node > names ....Is > there a workaround to accomplish this. > > Thanks and cheers > Garry > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > 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
|