[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: HTML5 and almost no namespaces

  • From: Michael Kay <mike@saxonica.com>
  • To: xml-dev@lists.xml.org
  • Date: Fri, 03 Jun 2011 10:16:25 +0100

Re:  HTML5 and almost no namespaces

> Are you suggesting that current XML namespaces are bad for every known
> uses of XML?
>

There has been a great deal of discussion of the namespace problem on 
this list over the years, and I'm a bit reluctant to spend a lot of time 
covering the ground again. But I think the problems with namespaces 
reduce to a number of general categories:

* Learning problems for beginners: the specifications are non-intuitive, 
hard to understand, and inconsistent; for example, namespace 
declarations sometimes behave like attributes and sometimes don't.

* Usability problems even for experienced users: the context-sensitivity 
of namespace prefixes makes it hard to get transformations right, and 
means that simple operations like cut-and-paste can produce incorrect 
results.

* Difficulties for implementors of tools: if you're writing XML 
processing software such as an XSLT or XQuery engine, or a schema 
processor or XML editor, then getting namespaces right absorbs a 
ridiculous proportion of your time; in consequence, there are many tools 
out there that don't get it right, which creates more difficulties for 
users. The complexity is unnecessary. Most of it derives from the fact 
that the namespace design introduces context-sensitivity (in-scope 
namespaces), which means that fragments of XML cannot be interpreted in 
isolation of where they appear.

* Interoperability problems: the fact that XML element names are not 
simple strings makes it difficult to define clean interfaces with other 
environments, for example data interchange with other formats, or 
programming language APIs.

The basic problem of resolving ambiguous local names could have been 
solved without these complexities.

Michael Kay
Saxonica


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.