This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: xsl copy
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] xsl copy
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 25 Apr 2001 17:15:41 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> Is there a way to copy attributes without having to perform a
> deep copy
> (copy-of)?
Since attributes have no children a deep copy is the same as a shallow copy.
You can copy an attribute using <xsl:copy/> but it has to be the current
node, which is why <xsl:copy-of> is often more convenient.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list