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

Re: Motivations for namespaces (sorry)


motivations
[David Megginson]
> So far, we don't know, because most of this discussion is
> hypothetical.  XML is scarcely used at all for widespread publication
> of documents or data -- most XML projects are in-house or inside a
> small set of exchange partners.  The few examples of widespread XML,
> like RSS and the Linux Documentation Project, are narrowly confined to
> a specific vocabulary.
>

I have been involved with a schema for a standard that makes use of about
five other standards by importing their schemas.  We are using a different
namespace for importing each of them.  These other standards are being
developed by  unrelated organizations.  Each one is complicated in its own
right.  Each one is developed using a different conceptual model and a
different concept of operations.

It often happens that one needs to look up some particular structure to find
out more about it.  So one needs to know where it came from.  This is
especially important for
elements that contain an ungodly number of enumerated choices, which is the
case in this work.

The namespace tells immediately which schema is in play.  Annotation
elements (this is XML Schema, so it has them) could be used, but they do not
always exist.  Without namespaces, it would be nearly impossible to find out
where things came from.  You would have to build an index by reading all the
schema imports (assuming no name conflicts), and refer to the index whenever
you wanted to look up information about an element.

But with namespaces, you know at once.  This is much better, and is one of
the reasons that I recommended that we use namespaces in this task.

Cheers,

Tom P



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.