Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


[xml-dev] My proposal: Implicit namespaces

From: rjelliffe@-------.---.--
To: "XML Developers List" <xml-dev@-----.---.--->
Date: 8/6/2009 7:59:00 AM
Here is my suggestion for namespaces and HTML.

Because
 1) the purpose of namespaces is disambiguation, but when we start with
HTML we rarely find that elements with the same local name are used, and
certainly not in the exactly the same context, and
 2) the namespace URI is used as a symbol to connect to schemas etc, but
when we use HTML we find that browsers operate by built-in knowledge that
does not require extra resolution of the URI,

we can simplify our lives by saying "namespaces in HTML are only ever
needed for non-standard customized fragments."

In other words, if you want to put in SVG into an HTML document, there are
not name clashes (in context) so there is no purpose served by namespaces.
All the HTML committee needs to do is say something like

"These are the standard vocabularies: HTML, SVG, RDF, etc etc, if you find
an element belonging to them, that starts a new branch."

In formal terms, you could see it as having a notional name-rewriting step
(which could be specified in ISO DSRL by the way) that goes from bare
names to qualified names.

The advantages:
 * HTML keeps plain and simple, and no-one has to worry about namespace
markup
 * people who want to add custom bits can do so, and can use namespaces
and so on using the current mechanism.
 * XHTML can continue on without change
 * mixed convention documents need not be distrupted
 * no big effort for defining a new syntax, which may be an exercise in
shifting verbosity from one location to another, would be required

(Another way of achieving much the same thing would be to allow multiple
namespaces as the default, with a schema-linked mechanism where the
namespace URI can be chosed by matching the local name in context with
unambiguous choices in a list of schemas. Not less defaulting, but
smarter!)

Cheers
Rick Jelliffe

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@l...
subscribe: xml-dev-subscribe@l...
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent