[Bug 3051] [Ser] undeclare-prefixes=no unspecified

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





------- Comment #2 from joannet@ca.ibm.com  2006-04-24 20:39 -------
I suggest the following modifications to existing text in section 5.1.7 (XML
Output Method: the undeclare-prefixes Parameter):

The Data Model allows an element node that binds a non-empty prefix to have a
child element node that does not bind that same prefix. In Namespaces in XML
1.1 ([XML Names 1.1]), this can be represented accurately by undeclaring
<remove>namespaces</remove> <new>prefixes</new>. <new>For the undeclaring
prefix of the child element node,  if</new> the undeclare-prefixes parameter
has the value yes, the output method is XML <new> or XHTML</new>, and the
version parameter value is greater than 1.0, the serializer MUST undeclare
<remove>namespaces</remove> <new>its namespace</new>.  <new>If the
undeclare-prefixes parameter has the value no and the output method is XML or
XHTML, then undeclaring prefixes MUST NOT occur. </new>

In Namespaces in XML <new>1.0<new> ([XML Names]), <remove>namespace</remove>
<new>prefix</new> undeclaration is not possible. If the output method is XML
<new> or XHTML</new>, the value of the undeclare-prefixes parameter is yes, and
the value of the version parameter is 1.0, a serialization error [err:SEPM0010]
results; the serializer MUST signal the error.

(not yet approved by WG)

thanks,
Joanne Tong

Received on Monday, 24 April 2006 20:39:19 UTC