W3C home > Mailing lists > Public > www-ql@w3.org > October to December 2003

RE: namespace node implementation

From: Kay, Michael <Michael.Kay@softwareag.com>
Date: Thu, 23 Oct 2003 15:23:50 +0200
Message-ID: <DFF2AC9E3583D511A21F0008C7E62106073DD1FE@daemsg02.software-ag.de>
To: Per Bothner <per@bothner.com>, www-ql@w3.org
> 
> > let $a := <a xmlns:ns1="NS1"><b ns1:x="X"/></a>
> > let $c := <c xmlsns:ns2="NS2">{$a/b}</c>
> > 
> > what is the result of get-in-scope-namespaces($c/b)?  It could be:
> > [("ns2") or ("ns1") or: ]
> > ("ns1", "ns2"):  Works but requires merging or copying, which is
> > difficult to do efficiently.  (It could be a high-frequency 
> operation.)
> 
> Actually, I guess it wouldn't be difficult to return ("ns1", 
> "ns2") by 
> just adding the prefixes found in the ancestors of the copied 
> <b> node.
> 

It wouldn't be difficult (it's what Saxon does today), but it wouldn't be
correct.

Michael Kay
Received on Thursday, 23 October 2003 09:24:31 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:17:16 UTC