Ok, good.
 
Thanks for the quick reply.
 
Jeff
-----Original Message-----
From: Jeff Greif [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 31, 2003 2:44 PM
To: [EMAIL PROTECTED]
Subject: Re: Import, Include and namespace

The rules are:
   1. Constructs in included schemas are defined in the target namespace of the including schema.  The included schema's namespace must match the targetNamespace of the includer, or it must have no namespace.
   2.  Import must be for schemas with namespaces different from the target namespace of the importer. The import element allows the importer to refer to the constructs of the imported schema, but does not add anything to the targetnamespace of the importer.
 
Thus: 
1.  a include c defines an element a:c  (where a: represents a's target namespace)
2.  b include c defines an element b:c
3.  my then can reference (through imports of a and b) the two elements a:c and b:c.
 
Jeff
 
----- Original Message -----
From: Inns, Jeff
Sent: Thursday, July 31, 2003 11:14 AM
Subject: Import, Include and namespace

This is not exactly a Xerces question but a general XML Schema question.
 
If a schema ("my") imports two schemas ("a" and "b") and "a" & "b" include "c", does "c" belong to the two different namespaces in "my"?  "my", "a" and "b" have different targetNamespaces.
 

Reply via email to