W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2002

Question about xs:import

From: <Ryan.Barr@ejgallo.com>
Date: Mon, 23 Sep 2002 21:00:20 -0400 (EDT)
Message-ID: <B5591F881291D61190A70002A5FBE8CCA612AA@MODNTES006.ejgallo.com>
To: xmlschema-dev@w3.org




I have a question regarding the usage of the xs:import tag and namespaces.
Specifically I want to import two documents into one namespace, here is an
example:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:oa="http://www.openapplications.org/oagis"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified">
	<xs:import namespace="http://www.openapplications.org/oagis"
schemaLocation="http://xml/OAGIS/Resources/Nouns/Personnel.xsd"/>
	<xs:import namespace="http://www.openapplications.org/oagis"
schemaLocation="http://xml/OAGIS/Resources/Verbs/Get.xsd"/>
	<xs:include schemaLocation="http://xml/Nouns/Personnel.xsd"/>
</xs:schema>

My question is simply this, is importing the files OAGIS/../Personnel.xsd
and OAGIS/../Get.xsd into the http://www.openapplications.org/oagis
namespace a violation of the spec?  It doesn't seem to be, if anyone has a
reference in the spec of were it is stated that this is allowed that would
be great.  Thanks

Ryan
Received on Tuesday, 24 September 2002 03:09:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT