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

Re: Add import elements to a schema with no change of functionality?

From: Michael Kay <mike@saxonica.com>
Date: Thu, 15 Dec 2011 11:32:35 +0000
Message-ID: <4EE9DAD3.4080608@saxonica.com>
To: xmlschema-dev@w3.org
Re: Add import elements to a schema with no change of functionality?
On 15/12/2011 10:40, Costello, Roger L. wrote:
> Hi Folks,
>
> Consider a schema, S1, with targetNamespace, tns1.
>
> Schema S2 has targetNamespace tns2, where tns1 is not equal to tns2.
Schemas do not have a target namespace. I think you are referring to 
schema documents.
>
> And so forth.
>
> S1 imports S2 which imports S3 which ...
>
> There are N schemas.
No, there is one schema. There are N schema documents.
>
> S1 has only one import element -- it imports S2.
>
> Suppose I add to S1 import elements to S3, S4, ..., Sn.
If S1 was already a valid schema document, then it contained no 
references to components defined in S3, S4, etc, and therefore the new 
import declarations are redundant, and therefore the schema constructed 
from this collection of schema documents is not affected. (It's very 
much the same as adding an "import" in a Java source file for a class or 
package that isn't then referenced from the code.)

However, the schema construction model is not defined very formally, and 
many aspects are implementation-defined, so your mileage may vary.

Michael Kay
Saxonica
Received on Thursday, 15 December 2011 11:35:22 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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.