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
|