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

Re: Trying to understand root-less or document-node-le

Subject: Re: Trying to understand root-less or document-node-less nodes
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 18 Sep 2007 09:50:36 +0100
Re:  Trying to understand root-less or document-node-le
> David Carlisle wrote:
> > <xsl:variable name="y2">
> >  <xsl:copy-of select=$x/x/b"/>
> > </xsl:variable>
> >   
> 
> I assume, in light of the rest you told, that consequently the same 
> statement with xsl:sequence will yield a copy,

yes, in theory the copying happens at slightly different times but that
isn't observable.

As written the copy happens at the xsl:copy so the sequence constructed
has copies of the nodes, then this sequence is copied (again) as
children of the implictly generated document node.

With xsl:sequence the initialy constructed sequence is the sequence of
original nodes, but that sequence is copied as the children of the
implicit document node.

So they end up being the same thing 9and  may well in an implementation
be implemented the same way, I doubt that saxon really copies all the
nodes twice in the first example.

David




________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

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.