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

Re: Need to import the XML schema namespace

  • From: Liam R E Quin <liam@w3.org>
  • To: Jeff Greif <jgreif@alumni.princeton.edu>
  • Date: Thu, 06 May 2010 00:08:32 -0400

Re:  Need to import the XML schema namespace
On Wed, 2010-05-05 at 20:47 -0700, Jeff Greif wrote:
> Most XML Schemas in the wild reference some of the types in the
> http://www.w3.org/2001/XMLSchema namespace, but they usually do so
> without explicitly importing it, so it apparently unnecessary in
> practice, if not normatively.

> I can't find any reference in the XML Schema 1.0 spec that says it is
> either illegal or unnecessary to import this namespace, for example,
> using xs:import.  Similarly, I can't find any further interoperability
> guidelines on this subject in the WSI-Basic Profile 1.0.

xs:import does not "import a namespace" - it imports a schema that
defines a vocabulary of elements and/or attributes associated with
that namespace URI. This distinction is very important. You could
not write a schema to define xs:integer or xs:string - they are
fundamental building blocks. So, the Schema language has them as
built-ins (in part 2 datatypes), and its neither necessary nor
actually possible to "import" them.

> Does anyone have a reference to a definitive statement of whether this
> import is required, optional or forbidden in XML Schemas that reference
> the data types of this namespace?

It's a meaningless question, you'll be glad to know :-)

Or, it would be like asking which header file you #include in C or C++
to get the keywords like "int" and "switch" and return"...

Hope this helps.


Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org www.advogato.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.
First Name
Last Name
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.