[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
> 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. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|