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

Original Message From: "Liam R E Quin"
> On Wed, 2011-05-25 at 00:00 -0400, Rick Yorgason wrote:
>
>> All this proposal does is take markup that's currently invalid and
>> define a valid behaviour for it.
>
> So people would start having an expectation that parsers would accept
> markup that they currently reject.
>
> So, the existing parsers would need to be replaced.

As I understand it, <foo:bar/> is an XML well-formed document, but is not an 
XML Namespace well-formed document.  Just because it isn't namespace 
well-formed shouldn't mean it shouldn't be successfully parsed as an XML 
well-formed document.  There was some discussion on this on the libxml2 
mailing list a while back (you might have to look at earlier mails in the 
thread to get the context):

    http://mail.gnome.org/archives/xml/2011-March/msg00022.html

Therefore I think it's at least suspect to treat <foo:bar/> as <bar 
xmlns='foo'/>.  Whether civilisation as we know it would fall apart if you 
do I don't know!

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.

HTH,

Pete Cordell
Codalogic Ltd
Interface XML to C++ the easy way using C++ XML
data binding to convert XSD schemas to C++ classes.
Visit http://codalogic.com/lmx/ or http://www.xml2cpp.com
for more info
Twitter: http://twitter.com/petecordell



[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