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

Re: XML Schemas: Best Practices

  • From: Curt Arnold <CurtA@t...>
  • To: "Roger L. Costello" <costello@m...>, xml-dev@l...
  • Date: Wed, 20 Sep 2000 20:05:48 -0500

Re: XML Schemas: Best Practices
Henry may be able to say whether or not you can actually do what you
suggested.  I just don't think it would usually be a good idea.

The problem I have is that processing applications can't readily
consistently and unambiguously process the imported elements if you hide
or disguise the namespace of elements.  

Lets think about if one of the elements was a common business element
from a standard vocabulary, say something like mitre:address.  If I hide
the namespace, then I have to dereference the schema and figure out that
the unqualified <address> is really a <mitre:address>.  Either that, or
I live dangerously and assume that any <address> I run into is a
<mitre:address> (which could be catastrophic when similarly named
elements or attributes imply different units in different namespaces)

If the namespace was explicit, then it would be much easier to do
something like scan a whole bunch of documents, identify the
mitre:address elements and build a geographic index.

In general, if you want to define a namespace and schema that provides
elements that you expect to be usable in a wide variety of applications
(for example, XHTML), it makes applications much easier if the elements
are explicitly qualified in the instance document.

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.