XML Parser

The XML Parser preferences panel is opened from menu WindowPreferencesAuthor+XML+XML Parser

Figure 17.33. The XML Parser preferences panel

The XML Parser preferences panel

http://apache.org/xml/features/validation/schema-full-checking

This option sets the 'schema-full-checking' feature to true.

http://apache.org/xml/features/honour-all-schema-location

This option sets the 'honour-all-schema-location' feature to true. This means all the schemas that are imported for a specific namespace are used to compose the validation model. If this is false, only the first schema import is taken into account.

Ignore the DTD for validation if a schema is specified

This option forces validation against a referred schema (XML Schema, Relax NG schema, Schematron schema) even if the document includes also a DTD declaration. It is useful when the DTD declaration is used to declare entities and the schema reference is used for validation.

Enable XInclude processing

Enable XInclude processing - if checked the XInclude support in <oXygen/> is turned on.

Base URI fix-up

[Xerces XML Parser documentation:] According to the specification for XInclude, processors must add an xml:base attribute to elements included from locations with a different base URI. Without these attributes, the resulting infoset information would be incorrect.

Unfortunately, these attributes make XInclude processing not transparent to Schema validation.

One solution to this is to modify your schema to allow xml:base attributes to appear on elements that might be included from different base URIs.

If the addition of xml:base and/or xml:lang is undesired by your application, you can disable base URI fix-up.

Language fix-up

[Xerces XML Parser documentation:]The processor will preserve language information on a top-level included element by adding an xml:lang attribute if its include parent has a different [language] property.

If the addition of xml:lang is undesired by your application, you can disable the Language fix-up.

Check ID/IDREF

Checks the ID/IDREF matches when the Relax NG document is validated.

Check feasibly valid

Checks the Relax NG to be feasibly valid when this document is validated.

Schematron XPath Version

1.0 - Allows XSLT 1.0 expressions for Schematron 1.5 assertion tests.

2.0 - Allows XSLT 2.0 expressions for Schematron 1.5 assertion tests.

Optimize (visit-no-attributes)

If your ISO Schematron assertion tests do not contain the attributes axis you should check this option for faster ISO Schematron validation.

Allow foreign elements (allow-foreign)

Enable support for allow-foreign on ISO Schematron. Used to pass non-Schematron elements to the generated stylesheet.

Use Saxon EE (schema aware) for xslt2 query binding

If checked, Saxon EE will be used for xslt2 query binding.

Saxon EE Validation

The Saxon EE Validation preferences panel is opened from menu WindowPreferencesAuthor+XML+XML Parser+Saxon EE Validation

Figure 17.34. The Saxon EE preferences panel

The Saxon EE preferences panel

XML Schema version 1.0

The validation of XML Schema schemas is done according to the W3C XML Schema 1.0 specification.

XML Schema version 1.1

The validation of XML Schema schemas is done according to the W3C XML Schema 1.1 specification.