[Bug 4869] [FS] Enclosed expressions and namespaces

http://www.w3.org/Bugs/Public/show_bug.cgi?id=4869





------- Comment #17 from tim@cbcl.co.uk  2008-02-06 10:50 -------
Regarding Comment #16, wouldn't serialization of the result have an effect too,
since the sequence normalization process for a sequence  is equivalent to
constructing a document node using the XQuery expression:

document {
  for $s in $seq return
    if ($s instance of document-node())
    then $s/child::node()
    else $s
}

i.e. wouldn't

<a  xmlns:p="q"><b/></a>

produce

<a xmlns:p="q">
   <b/>
</a>

but serialize to

<a>
   <b/>
</a>

Note that the specification doesn't make it clear what the copy-namespaces mode
might be for the above.

Received on Wednesday, 6 February 2008 10:51:03 UTC