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

RE: maintaining pointer to original doc

Subject: RE: maintaining pointer to original doc
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Mon, 23 Sep 2002 15:19:12 +0100
RE:  maintaining pointer to original doc
> I'm attempting to create an xml sub-tree from an xml doc 
> using copy-of. 
> I'm running a transform and I get the subtree but if I make 
> changes on this subtree doc it has no impact on the original 
> doc. I assume that it's because I'm using copy-of. Is there 
> another way of getting a subtree without loosing access to 
> the original doc thru the subtree doc?
> 

You can select nodes using 
<xsl:variable name="nodes" select="... path expression ..."/>

The variable will contain references to the original nodes. You can't
update these nodes using XSLT. Some processors may allow you to update
them using extension functions, but it's not to be recommended.

Michael Kay
Software AG
home: Michael.H.Kay@xxxxxxxxxxxx
work: Michael.Kay@xxxxxxxxxxxxxx 


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


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.