Page 1 of 1

Problems importing external namespace schema components

Posted: Tue Sep 13, 2005 9:39 pm
by Ed Abrahamson
When importing "http://www.w3.org/2001/xml.xsd" into my schema, as shown in the following snippit:

<xs:schema targetNamespace="http://www.bibletechnologies.net/2003/OSIS/namespace"
xmlns="http://www.bibletechnologies.net/2003/OSIS/namespace"
xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
attributeFormDefault="unqualified" xml:lang="en">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="http://www.w3.org/2001/xml.xsd"/>

I get the following error:

W schema_reference.4: Failed to read schema document 'http://www.w3.org/2001/xml.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

Am I missing something? Do I have some preference set incorrectly? I get the same error when trying to validate an xml file against my schema.

Please help me out!
Thanks in advance,
Ed

Posted: Wed Sep 14, 2005 9:24 am
by george
Hi Ed,

The schema works ok for me. Probably you do not have a direct internet connection and oXygen cannot access the remote schema file. You can try to open the http://www.w3.org/2001/xml.xsd in the editor to see if that is working. In any case, you can set up an XML catalog to resolve the schema to a local copy. Also you can use the Options->Prefereces to / Proxy Configuration to specify your proxy settings to access the internet from oXygen.

Best Regards,
George

Posted: Mon Sep 26, 2005 5:19 pm
by Ed Abrahamson
Thanks George,

I just needed to set my proxy

- Ed