W3C home > Mailing lists > Public > public-html@w3.org > October 2009

Re: ISSUE-41/ACTION-97 decentralized-extensibility

From: Julian Reschke <julian.reschke@gmx.de>
Date: Sat, 03 Oct 2009 11:26:01 +0200
Message-ID: <4AC718A9.6080801@gmx.de>
To: Maciej Stachowiak <mjs@apple.com>
CC: Sam Ruby <rubys@intertwingly.net>, Adrian Bateman <adrianba@microsoft.com>, HTML WG <public-html@w3.org>, Tony Ross <tross@microsoft.com>
Maciej Stachowiak wrote:
> ...
> 3) A spec based on Microsoft's proposal could state changes to the 
> parsing algorithm, or just define a complete modified copy of the 
> parsing algorithm. After all, Namespaces in XML modifies XML parsing by 
> modifying the grammar of XML, even though that was never an official 
> extension point. I think changes to the HTML5 parsing algorithm are 
> necessary in some form to fully define Microsoft's proposal.
> ...

I think that's a bit misleading.

The parsing rules for "XML" aren't changed at all. What was a 
well-formed XML 1.0 document continues to do so.

XML Namespaces just introduces new constructs (expressed in 'old' 
syntax) and new constraints. So a given well-formed XML document may or 
may not also be a wellformed XML+XMLNS document.

In particular, you *can* use an non-namespace-aware XML parser to parse 
a document using XML namespaces. But, in that case, you have to extract 
the namespace information from the xmlns* attributes, and also have to 
check the additional constraints. Note that was a common strategy back 
when namespace support wasn't available yet.

BR, Julian
Received on Saturday, 3 October 2009 09:26:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:39:08 UTC