xsl-list
[Top] [All Lists]

Re: [xsl] deep copy without attributes

2013-05-20 09:37:40
On Mon, May 20, 2013 at 3:22 PM, Andrew Welch 
<andrew(_dot_)j(_dot_)welch(_at_)gmail(_dot_)com> wrote:
idea being to deep copy leaving the attribute nodes behind although
that syntax will not do that.

You can't both deep-copy and modify the thing that you are copying.

Well I'm not going to get hung up on that semantic - after all copy
doesn't copy and as for copy of  - well what does that mean.

Instead you have to shallow copy a node at a time, and not copy the
attribute nodes, eg use an identity template with a no-op for
attribute:


and that is what is cumbersome especially if you put yourself in the
shoes of what a good friend of mine calls an occasional dabbler in the
language.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--