Problems importing external namespace schema components

This should cover W3C XML Schema, Relax NG and DTD related problems.
Ed Abrahamson
Posts: 2
Joined: Tue Sep 13, 2005 9:17 pm

Problems importing external namespace schema components

Post by Ed Abrahamson » Tue Sep 13, 2005 9:39 pm

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

george
Site Admin
Posts: 2101
Joined: Thu Jan 09, 2003 2:58 pm

Post by george » Wed Sep 14, 2005 9:24 am

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

Ed Abrahamson
Posts: 2
Joined: Tue Sep 13, 2005 9:17 pm

Post by Ed Abrahamson » Mon Sep 26, 2005 5:19 pm

Thanks George,

I just needed to set my proxy

- Ed

Post Reply