[oXygen-user] XML Schema validation and XInclude
Robert Koberg
Sun Nov 13 10:33:31 CST 2005
Hi,
I have some XML Schemas that xs:import the xml namespace attributes
(xml:base so I can use XInclude and be able to validate it). I am
getting a validation error on the schemas themselves when I try to
validate in oxygen saying they can't find the xml.xsd which is in the
same directory as the import schema. Here is the error message:
Description: W schema_reference.4: Failed to read schema document
'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>.
URL: http://www.w3.org/TR/xmlschema-1/#schema_reference
When I use JARV/MSV the schemas validate (and so does the instance
document).
Is this a bug in oxygen or perhaps xerces? I am using oxygen 6.1 and Mac
OS X.
(I have also tried using xs:anyAttribute with the xml namespace and
neither oxygen or JARV validates the instance document.)
Here is a test schema and a xml.xsd:
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:import namespace="http://www.w3.org/XML/1998/namespace"
schemaLocation="xml.xsd"/>
</xs:schema>
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
targetNamespace="http://www.w3.org/XML/1998/namespace"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
<xsd:attribute name="base"/>
</xsd:schema>
best,
-Rob
More information about the oXygen-user
mailing list