DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14584>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14584

Unable to load schema which imports or includes partial schemas

[EMAIL PROTECTED] changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |INVALID



------- Additional Comments From [EMAIL PROTECTED]  2002-11-15 15:19 -------
First a clarification: A includes C, but A imports NS2 (not B). Include and 
Redefine work on schema documents, but import works on namespaces. When A 
imports a namespace, it simply says A can refer to components from that 
namespace. The "schemaLocation" attribute on "import" is just a hint, and it's 
optional (the same does't hold for include or redefine).

Now back to your question. A schema document (C in your case) can refer to 
schema components from a namespace other than its own target namespace if and 
only if it imports that namespace (see bullet 4 of [1]). So in your C, you need 
to have
<import namespace="NS2"/>
This way, C can refer to components from NS2, but it's not tied to B.

[1] http://www.w3.org/TR/xmlschema-1/#src-resolve

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to