[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|