[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: How to duplicate an entire subtree

Subject: Re: Re: How to duplicate an entire subtree
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Mon, 29 Dec 2008 09:32:25 -0500
Re:  Re: How to duplicate an entire subtree
At 2008-12-29 10:30 +0100, nick public wrote:
I believe understood.
I'm using the xsl:copy that copy just the text values and not the
structure. In fact, if I wrap the xsl:copy in a new element, in the
result tree I have the new element and, inside, the text values of
source elements. The xsl:copy is using the XSLT built-in template.

Not quite ... the definition of <xsl:copy> is only to add the current node to the result tree. <xsl:copy> says nothing about descendent text values. In your stylesheet you had <xsl:apply-templates> where the nodes being pushed at your stylesheet were being handled by the built-in template rules. It is the effect of the built-in template rules that added the text value to the result tree, not the effect of <xsl:copy/>


Instead, xsl:copy-of uses a own template that consist of to keep the
copied structure.

Not a template, the instruction is just defined as copying the nodes.


I hope this helps.

. . . . . . . . . . . . . Ken

--
Upcoming XSLT/XSL-FO, UBL and code list hands-on training classes:
:  Sydney, AU 2009-01/02; Brussels, BE 2009-03; Prague, CZ 2009-03
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video sample lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg
Video course overview:  http://www.youtube.com/watch?v=VTiodiij6gE
G. Ken Holman                 mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.