[Bug 4869] [FS] Enclosed expressions and namespaces

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





------- Comment #16 from davidc@nag.co.uk  2008-02-06 10:41 -------
(In reply to comment #12)
> d. Each nested direct constructor is evaluated as if....

If this change is made don't you want to apply it also to top level element
constructors not just nested ones? As I understand the proposal it would make


declare copy-namespaces no-preserve, inherit;

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


produce 

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


(as now)

but

declare copy-namespaces no-preserve, inherit;

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



which currently produces
<a>
   <b xmlns:p="q"/>
</a>


to change to produce
<a>
   <b/>
</a>


If it is thought desirable to change the second example to lose the generated
namespace declaration, why not the first?

David

Received on Wednesday, 6 February 2008 10:41:44 UTC