XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] XML Namespaces 1.1

On Wed, 2011-05-25 at 09:51 +0100, Pete Cordell wrote:

> As I understand it, <foo:bar/> is an XML well-formed document, but is not an 
> XML Namespace well-formed document.
Right.

[...]

> So rather than doing:
> 
>     <com.foo:bar/>
> 
> I would suggest doing:
> 
>     <:com.foo:bar/>

> This is XML well-formed, but the initial colon means that it is not XML 
> namespace well-formed.  You could claim that it was XML namespace-bis 
> well-formed though.

Note that if you start using names like com.foo, you lose the use case
of copying HTML fragments from (say) RSS/Atom into HTML, where typically
you want the same local-name to be copied, but the namespaces are
actually (strictly speaking) different.

I don't have a way to measure the relative frequencies of the various
use cases, though.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/



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


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS