Re: [xsl] copy and translate an element and its children

Subject: Re: [xsl] copy and translate an element and its children
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 3 Jul 2003 20:52:39 +0100

> Well, that's what I thought at first when I tried it before copy-of, but 
> apparently all the child element attributes are not copied.  I needed a 
> deep copy so that's why I used copy-of.  Thanks for your suggestions.

No, using position()&gt; 1 would be equivalent (except more efficient)
than what you had. If you lost child element markup but got th
echaracter data you probably used value-of some-where (that's what
value-of does) but that is a separate issue than the selection.

David

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread