You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2004/03/11 10:08:56 UTC

DO NOT REPLY [Bug 27593] New: - xsd:import element doesn't work

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

http://issues.apache.org/bugzilla/show_bug.cgi?id=27593

xsd:import element doesn't work

           Summary: xsd:import element doesn't work
           Product: Xerces2-J
           Version: 2.6.2
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: XML Schema Structures
        AssignedTo: xerces-j-dev@xml.apache.org
        ReportedBy: olaf.braatz@t-online.de


If I try to import a xml schema into another I get the error output:

[xs-error]: src-resolve: Cannot resolve the name 'ns1:Extension' to a(n) 'type 
definition' component.

The xml schema definitions can be found in the book "Definitive XML Schema"; 
Priscilla Walmsley; ISBN: 0-13-065567-8; Prentice Hall at page 72.

As info: if I remove the xsd:import element the this error occurs:

[xs-error]: src-resolve.4.2: Error resolving component 'ns1:Extension'. It was 
detected that 'ns1:Extension' is in 
namespace 'http://de.toi.oms.domainmodel/mynamespace1', but components from 
this namespace are not referenceable from schema 
document 'file:///D:/ccdata/toi_oms_o.braatz_dev-
webservices/oms/env/app/xsdgen/test/namespaces2.xsd'. If this is the incorrect 
namespace, perhaps the prefix of 'ns1:Extension' needs to be changed. If this 
is the correct namespace, then an appropriate 'import' tag should be added 
to 'file:///D:/ccdata/toi_oms_o.braatz_dev-
webservices/oms/env/app/xsdgen/test/namespaces2.xsd'.

This is clear to me and I did the import according to Priscilla Walmsley's book 
with the result mentioned above.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org