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

RE: Recursive replacement

From: Novak <novak@ispras.ru>
Date: Mon, 30 Jan 2006 18:52:40 +0300
Message-Id: <200601301556.k0UFu6a1029616@ispserv.ispras.ru>
To: "'David Carlisle'" <davidc@nag.co.uk>, <martin@x-hive.com>
Cc: <www-ql@w3.org>

David 
>From my point of view the situation is a liitle bit more complicated.
1) When we evaluate the source sequence, it is not said that the nodes from
that sequence are copied. Thus they preserve their identity (am I right?).
Thus the inner-most <a/> after the conversion of the outer node possesses
the same identity as in original document. Thus the error shouldn't be
raised.
Regards, Leonid Novak
> -----Original Message-----
> From: David Carlisle [mailto:davidc@nag.co.uk]
> Sent: Monday, January 30, 2006 6:42 PM
> To: martin@x-hive.com
> Cc: novak@ispras.ru; www-ql@w3.org
> Subject: Re: Recursive replacement
> 
> Martin
> 
>   Well, the constructor "element new-node {$p/*}" copies the contents of
>   the node $p, so the outermost <a/> node is replaced with
>   <new-node><b><a/></b></new-node>.
> 
> 
> Yes but the question is really about the inermost a node.
> Michael indicated that the table is intended to allow the operations
> that commute, so it depends a bit on what the definition of equivalence
> is.
> 
> If you replace the inner one first, then the outer one, then the effect
> is as if you just replaced the outer one, as you indicate above.
> 
> If however you replace the outer one first, when you come to replace the
> inner one, it's not there, so is that a merge conflict and an error, or
> do you just silently do nothing in which case commutativity is
> restored, and you get the same result as if you had done the operations
> in the other order.
> 
> 
> David
> 
> 
> ________________________________________________________________________
> 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:
> http://www.star.net.uk
> ________________________________________________________________________
Received on Monday, 30 January 2006 15:56:19 UTC

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