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

RE: XHTML 2 Working Group won't be renewed?

  • From: "Michael Kay" <mike@saxonica.com>
  • To: "'Kurt Cagle'" <kurt.cagle@gmail.com>
  • Date: Wed, 8 Jul 2009 23:14:35 +0100

RE:  XHTML 2 Working Group won't be renewed?
 > I keep seeing the idea being pushed of defining some sort of umbrella namespace that can be utilized to "wrap" other namespaces, so that you can essentially work with a default namespace for multiple tags.  
 
Yes, I've pushed similar ideas in the past. I've always thought there was room for a concept of a "namespace path" where a local name does not have to carry an explicit prefix to determine what namespace it belongs to, but is instead resolved by some kind of deterministic search algorithm: for example, if there is a set of namespaces in scope, look in all of them, and if the name is defined in more than one of the namespaces, give precedence to the namespace of ancestor elements in order of containment. This depends on some kind of mechanism where the set of local names in a namespace is closed and is defined somewhere.
 
Then you can start to have a concept of a document type or media type (or perhaps a "super-namespace") mapping to a set of namespaces and a search order, so once the document/media type is known, it doesn't need to contain any explicit namespace declarations at all, unless they are actually needed to resolve ambiguous local names, which will be rare.
 
(Java manages this perfectly well, where package names only need to prefix a class name if the class name is ambiguous within the set of packages defined in the document header).
 
A nice feature for incremental adoption is that a document with implicit namespaces in this form could still be well-formed XML 1.0 and could be mechanically converted to a document using explicit namespaces conforming to XML-Namespaces 1.0 or 1.1, and its infoset would be compatible with existing infosets.
 

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay

 
 


[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.