[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: Jeff Greif <jgreif@alumni.princeton.edu>
  • To: liam@w3.org
  • Date: Wed, 05 May 2010 21:31:58 -0700

Re:  Need to import the XML schema namespace
Thanks, Liam.

I had never the seen it before today, but there seem to be several
Microsoft tools that generate (in WSDL documents)

<schema ...>
   <import namespace="http://www.w3.org/2001/XMLSchema"
schemaLocation="http://www.w3.org/2001/XMLSchema.xsd" />
...

or the same import lacking the schemaLocation attribute.

That schema-for-schemas (non-normative copy of the normative schema in
the spec) does include declarations of the datatypes specified in Xml
Schema 1.0 part 2, which might likely be referenced in the importing
schema.  So it appears to be possible to import them, and in practice,
unnecessary.

Jeff

On 5/5/2010 9:08 PM, Liam R E Quin wrote:
> 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
> 
> 



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