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

Re: Recursive replacement

From: David Carlisle <davidc@nag.co.uk>
Date: Mon, 30 Jan 2006 16:38:25 GMT
Message-Id: <200601301638.QAA23546@penguin.nag.co.uk>
To: martin@x-hive.com
CC: novak@ispras.ru, www-ql@w3.org

  No. Imagine what operations you get:
  a) replace inner-a with <new-node/>
  b) replace outer-a with <new-node><b><a/></b></new-node>
  The important thing: this ------------^ <a/> is a completely different
  node than the original inner-a, so the order doesn't make any

Yes as I just replied to Leonid, they do have new identity, the problem
is if you reverse the order of the replacements:

a) replace outer-a with <new-node><b><a/></b></new-node>

now _because_ that <a/> has new identity when you come to the second
pending operation 

b) replace inner-a with <new-node/>

you are stuck because there is no node with the identity inner-a.
So is this an error, or do you just skip this operation?


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
Received on Monday, 30 January 2006 16:45:38 UTC

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