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

Namespaces, schemas, and conformance

  • From: David Megginson <david@m...>
  • To: xml-dev <xml-dev@l...>
  • Date: Thu, 21 Dec 2000 20:29:46 -0500 (EST)

Namespaces
Sean B. Palmer writes:

 > Say I created a namespace for a language at http://infomesh.net/testns/
 > Then, on the Web, there are two different XML documents:-
 > 1. <roota xmlns="http://infomesh.net/testns/"/>
 > 2. <rootb xmlns="http://infomesh.net/tesns/"/>
 > Here, the root elements, (and possibly the enitre definitions of the
 > langauges!) are different, but they use the same namespace! Which one is
 > definitive?

You mean "which one is compliant" -- the documents can be definitive
only in their own domains.  The answer to your question is either,
both, or neither, depending on how well the documents conform to the
published specification for the Namespace.  If the specification says

  In this Namespace, either the roota or the rootb elements may be
  used at the top level ...

then they're both fine.  If the documentation says

  In this Namespace the roota element shall be used at the top level
  if the document is designed for non-profit purposes, and the rootb
  element shall be used at the top level if the document is designed for
  commercial purposes ...

then a human being is going to have to test conformance.  Even with a
schema, the documents have to conform to the published specification
to be compliant -- schemas can catch only a very small percentage of
conformance errors (they're a time-saving tool, not a silver bullet).


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

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.