The <xsd> element

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

Attribute

Applies to

Values

Effect

assertionsCanSeeComments

EE

true|false

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

implicitSchemaImports

EE

true|false

If true, allows a schema document to reference components in a different target namespace without an explicit xs:import declaration, provided the referenced components are already known.

multipleSchemaImports

EE

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

EE

A string containing two integers, comma-separated

Controls the limits applied to minOccurs and maxOccurs values in XSD content models.

schemaUriResolver

EE

Name of a class that implements SchemaURIResolver

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

thresholdForCompilingTypes

HE PE EE

integer

Indicates how often an XSD simple type definition must be used before Saxon generates bytecode to implement validation of input data against that type.

useXsiSchemaLocation

EE

true|false

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

version

EE

1.0|1.1

Indicates whether XSD 1.1 syntax is accepted.