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

Re: Summary of critiques of XML Namespace from comments toJame

  • From: Pete Cordell <pete++xmldev@codalogic.com>
  • To: Rick Jelliffe <rjelliffe@allette.com.au>, xml-dev <xml-dev@l...>
  • Date: Mon, 26 Jul 2021 17:59:39 +0100

Re:  Summary of critiques of XML Namespace from comments toJame
On 24/07/2021 08:17, Rick Jelliffe wrote:
Marcus R brought up this blog recently:
Here is a summary of the various POVs.

James C:  Capability is occasionally useful, but not that useful. prefix/namespace disutiliy outweighs utility. 
     Using URIs was not necessary and uncritically adopted.  But good for RDF. 
    Nesting declarations seemed reasonable at the time, but ....

Michael K: Should be built in, not layered.     Using URIs is a misguided. URIs don't get dereferenced to get the schema
etc anyway.   Unclarity about infoset status of prefixes.

I like the idea of dispensing with URIs in namespaces as well.  The simplest idea I can come up with is using inverse domain names as fully qualified names and having children inherit the namespace of their parent if they aren't fully qualified.

So you might have:

<com.example.myvocabulary.top>
    <middle />
</com.example.myvocabulary.top>

which would be equivalent to:

<com.example.myvocabulary.top>
    <com.example.myvocabulary.middle />
</com.example.myvocabulary.top>

(For a new syntax you could even say that an end tag adopts the namespace of its start tag if it is not fully qualified, for example:

<com.example.myvocabulary.top>
    <middle />
</top>
)

You could either rely on search engines to find out more details about the com.example.myvocabulary vocabulary, or have an algorithm such that you first query http://example.com/myvocabulary and if that doesn't yield anything, you look up http://myvocabulary.example.com/

This would also work with JSON.

Cheers,

Pete.
-- 
---------------------------------------------------------------------
Pete Cordell
Codalogic Ltd
Read & write XML in C++, http://www.xml2cpp.com
--------------------------------------------------------------------- 


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