In the instance document, the schema is referenced via
- Code: Select all
<OV-IE-AS
xsi:noNamespaceSchemaLocation="http://www.siemens.com/nars/v2t/OV-IE-AS" ...>...
The system identifier is mapped to a file system URL in a catalog file that is listed in the Oxygen XML Catalog Preferences (where it is found as you can see from the following output).
These are messages I get when I set verbosity to "All messages":
- Code: Select all
Resolved system: http://www.siemens.com/nars/v2/OV-IE-AS file:/C:/mtiroot/NARS_workspace/xml/schema_flat/v2/ov-ie_v2.xsd
Public: null System: http://www.siemens.com/nars/v2/OV-IE-AS = file:/C:/mtiroot/NARS_workspace/xml/schema_flat/v2/ov-ie_v2.xsd
Could not resolve URI:
What is this? First I am told that the system identifier was resolved correctly, two lines later the URI (which one?) cannot be resolved? (In the preferences, Prefer=system is set.)
With lax validation, the effect is that the attribute default values I need are not inserted into the document. If I set schemaValidation="strict" in the Saxon configuration file, I get different errors:
- Code: Select all
org.apache.commons.httpclient.HttpException: 404 Not Found for: http://www.siemens.com/nars/v2/OV-IE-AS - 404 Not Found for: http://www.siemens.com/nars/v2/OV-IE-AS
Validation will continue without the schema at http://www.siemens.com/nars/v2/OV-IE-AS
Cannot validate <OV-IE-AS>: no element declaration available
Start location: 3:170
URL: http://www.w3.org/TR/xslt20/#err-XTTE1510
Looks like Saxon-EE does not even read the catalog file!? Interestingly enough, this is not the case when I use Saxon-EE as validator in a validation scenario, all other things being equal! Although it produces the same strange "Could not resole URI" message like above, its concluding statement is "Validation succesful". (Yes, in exactly this spelling!)
This is the content of the Saxon configuration file:
- Code: Select all
<configuration xmlns="http://saxon.sf.net/ns/configuration" edition="EE">
<!--
<global schemaValidation="strict" expandAttributeDefaults="true" />
-->
<global expandAttributeDefaults="true" />
<xsd useXsiSchemaLocation="true" version="1.0"/>
</configuration>





data server software 