> document: <root><a/><b><c/></b></root> > > 1) > query insert doc("test.xml)//c into doc("test.xml)//a > > result: <root><a><c/></a><b/></root> > > 2) > query for $i in doc("test.xml)//root/* do insert doc("test.xml)//c into $i > > result: implementation-dependent > > Am I right? I don't think inserting a node that is currently in the tree moves it away. The spec refers to the way it's done within element constructors. Why should "insert" move something around anyways? In both cases each of the target elements gets a <c/> inserted, but those are always copies of the original nodes. MartinReceived on Monday, 30 January 2006 18:38:08 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 22 July 2006 00:10:21 GMT