[Bug 9778] [SER] HTML output and namespace undeclaration


--- Comment #1 from Henry Zongaro <zongaro@ca.ibm.com>  2010-05-20 13:51:31 ---
I believe that no undeclaration of namespace prefixes will occur.

In the first item in the numbered list of section 7.1,[1] the Serialization
Recommendation says, "If the result tree contains namespace nodes for
namespaces other than the XML namespace, the HTML output method MUST represent
these namespaces using attributes named xmlns or xmlns:prefix in the same way
as the XML output method would represent them when the version parameter is set
to 1.0."

According to section 5.1.7,[2] undeclaration of prefixes only occurs if the
undeclare-namespaces parameter has the value "yes" and the version parameter
has a value greater than 1.0, neither of which condition is true for an XML
island in HTML.

Of course, the text that I've quoted from 7.1 applies to namespace nodes in the
result tree, and your question is regarding elements that have namespace nodes
for particular prefixes, but whose child elements do not have namespace nodes
for those prefixes.  However, I believe the text from 7.1 still applies here -
namespace declarations and namespace undeclarations are both triggered by the
presence of namespace nodes in the result tree, but undeclaration of prefixes
will not occur because the namespace attributes are handled as if the version
parameter was set to 1.0.

This is my personal response, not that of the XSL and XQuery Working Groups.

[1] http://www.w3.org/TR/xslt-xquery-serialization/#HTML_MARKUP
[2] http://www.w3.org/TR/xslt-xquery-serialization/#xml-undeclare-NS

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 Thursday, 20 May 2010 13:51:36 UTC