[Bug 6517] [XQuery] Default namespace undeclarations

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


Andrew Eisenberg <andrew.eisenberg@us.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrew.eisenberg@us.ibm.com




--- Comment #1 from Andrew Eisenberg <andrew.eisenberg@us.ibm.com>  2009-02-09 21:47:47 ---
I believe that the query you provide:

<s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns="http://t.com/">
  <s:element ref="abcd" xmlns=""/>
</s:complexType>

should produce:

<s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns="http://t.com/">
  <s:element ref="abcd" xmlns=""/>
</s:complexType>

I believe that the use of an enclosed expression:

<s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns="http://t.com/">
  { <s:element ref="abcd" xmlns=""/> }
</s:complexType>

will produce: 

<s:complexType xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns="http://t.com/">
  <s:element ref="abcd"/>
</s:complexType>


In section 3.7.1.3 Content, rule 1)d applies to nested direct element
constructors, and simply connects child to parent. Rule 1)e applies to enclosed
expressions, copying the children and modifiying the in-scope-namespaces
property.



-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

Received on Monday, 9 February 2009 21:47:58 UTC