W3C home > Mailing lists > Public > www-ql@w3.org > January to March 2006

Recursive replacement

From: Novak <novak@ispras.ru>
Date: Mon, 30 Jan 2006 17:41:35 +0300
Message-Id: <200601301445.k0UEj1a1027070@ispserv.ispras.ru>
To: <www-ql@w3.org>

Consider the following xml document:
and 2 queries:

1)replace {fn:doc("test.xml")//a} with <new-node/>
2) for $p in fn:doc("test.xml")//a
   do replace {$p}
      with element "new-node" {$p/*}

Due to the Compatibility of Update Primitives table it follows that the
deletion of
The upper-most <a> node doesn't contradicts woth the update of the inner
Could you please explain me, what is the result of these statements (or an
error should be raised)

Best Regards, 
Leonid Novak, 
Sedna DBMS Team,
Received on Monday, 30 January 2006 14:45:19 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:43:44 UTC