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

Re: Pragmatic namespaces

  • From: Kurt Cagle <kurt.cagle@gmail.com>
  • To: Pete Cordell <petexmldev@codalogic.com>
  • Date: Thu, 6 Aug 2009 01:47:39 -0700

Re:  Pragmatic namespaces
While I like the Java notation ideas floated around, keep in mind that for many, many developers, the dot notation normally implies child class. For instance:

org.w3.html.body would imply that body is the immediate descendant of org.w3.html, which is the immediate descendant of org.w3, and so forth.

Also, if I'm not mistaken, Microsoft XAML makes use of dot notation XML tag names, but I don't remember off the top of my head whether this was a namespace workaround or a class implication.  I can also foresee potential problems with languages like e4x, which do make use of dot notation in order to perform Javascript get-child operations.

Kurt Cagle
Managing Editor
http://xmlToday.org


On Thu, Aug 6, 2009 at 12:36 AM, Pete Cordell <petexmldev@codalogic.com> wrote:
Original Message From: "Liam Quin"


Donkeys can't type very fast... I can see there there might be pushback
for this proposal on the grounds that it's considerably more verbose
than most other current proposals, with the exception of the {...}
syntax...

See my proposal from yesterday that allowed partial namespaces (http://lists.xml.org/archives/xml-dev/200908/msg00033.html ).


also, it can't easily be made compatible with
things like ch.cern.html (later org.ietf.html, and then org.w3.html,
of course, and also ch.iso.html...)

If you make the namespace more obviously separable from the local name, (for example, by using a : rather than another .), then the XML parser can be informed as a local implementation that namespace org.ietf.html is an alias of namespace org.w3.html (or better still, namespace http://html.ietf.org is an alias of namespace http://html.w3.org).  So when the parser encounters <body:html.ietf.org> it can return the equivalent of <body:html.w3.org>.


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



_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




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