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(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list