The <xsd> element

The xsd element of the configuration file contains properties defining how schema documents are compiled by Saxon.

Attribute

Values

Effect

assertionsCanSeeComments

true|false

Determines whether comment and processing instructions in a document being validated are visible to assertions in an XSD 1.1 schema.

multipleSchemaImports

true|false

If set to true, the schema processor attempts to fetch a schema document appearing in an xs:import directive, whether or not a schema for that namespace has already been loaded.

occurrenceLimits

MMM,NNN

Two integers, comma-separated. Controls the limits applied to minOccurs and maxOccurs values in XSD content models.

schemaUriResolver

Class implementing the Saxon SchemaURIResolver interface

Controls the handling of URIs in xs:include, xs:import etc. declarations, and also in xsi:schemaLocation.

useXsiSchemaLocation

true|false

Indicates whether the schema processor takes account of xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes appearing in the instance document.

version

1.0|1.1

Inidcates whether XSD 1.1 syntax is accepted.