Powered by Zoomin Software. For more details please contactZoomin

Messages and Codes Reference Guide

SCHEMATRON Messages

  • Last Updated: September 10, 2026
  • 4 minute read
    • MarkLogic Server
    • Version 12.0
    • Documentation

SCHEMATRON-ABSTRACTPATTERNS

Message Text

Abstract patterns should be expanded

Cause

Abstarct patterns have not been pre-processed.

Response

Correct your code.

SCHEMATRON-ABSTRACTRULE-CONTEXT

Message Text

Abstract rule has context attribute

Cause

The abstract rule has has context attribute.

Response

Correct the Schematron schema.

SCHEMATRON-ABSTRACTRULE-NOID

Message Text

The rule element has no id attribute

Cause

The abstract rule has no id attribute.

Response

Correct the Schematron schema.

SCHEMATRON-ACTIVE-NOPATTERN

Message Text

The active element has no pattern attribute

Cause

The active element has no pattern attribute.

Response

Correct the Schematron schema.

SCHEMATRON-ASSERT-NOTEST

Message Text

The assert element has no test attribute

Cause

The assert element has no test attribute.

Response

Correct the Schematron schema.

SCHEMATRON-BAD

Message Text

variable1

SCHEMATRON-CANNOTIMPORTSCHEMA

Message Text

Element import-schema not supported for the specified query language binding

Cause

Element import-schema is used for a query language binding that is not 'xslt2'

Response

Correct the Schematron schema. XSD schemas may only be imported if you are using the 'xslt2' query language binding

SCHEMATRON-DIAGNOSTIC-NOID

Message Text

The diagnostic element has no id attribute

Cause

The diagnostic element has no id attribute.

Response

Correct the Schematron schema.

SCHEMATRON-DIAGNOSTICREFERENCE

Message Text

The diagnostic: variable1 is referenced but not declared

Cause

Diagnostic declaration missing.

Response

Correct the Schematron schema.

SCHEMATRON-EXTENDS-NORULE

Message Text

The extends element has no rule attribute

Cause

Declaration of abstract rule missing.

Response

Correct the Schematron schema.

SCHEMATRON-FUNCTION

Message Text

Incorrect namespace for function element

Cause

The function element in the ISO Schematron namespace.

Response

Correct the Schematron schema. The function element should be in XSLT namespace.

SCHEMATRON-FUNCTION-NONAME

Message Text

The function element has no name attribute

Cause

The function element has no name attribute.

Response

Correct the Schematron schema.

SCHEMATRON-HASCHILD

Message Text

Element: variable1 has child element

Cause

Child element is unexpected for the given element.

Response

Correct the Schematron schema.

SCHEMATRON-IMPORTSCHEMA

Message Text

Incorrect namespace used for import-schema element

Cause

The import-schema element is in the ISO Schematron namespace.

Response

Correct your Schematron schema. The import-schema element should be in XSLT namespace.

SCHEMATRON-INCLUDE

Message Text

Schema element reference in include directive

Cause

Include directive is used to reference the whole schema.

Response

Correct the Schematron schema. Include fragments in the include directive.

SCHEMATRON-INCLUDEBAD

Message Text

Cannot include: variable1 referenced by include directive

Cause

Unable to include the document referenced by include directive

Response

Correct your Schematron schema.

SCHEMATRON-INCLUDEBADURL

Message Text

Bad URL in the include directive

Cause

Include directive contains a bad URL.

Response

Correct the Schematron schema.

SCHEMATRON-INCLUDEEMPTY

Message Text

Empty href attribute for the include directive

Cause

Empty value for the href attribute in the include directive.

Response

Coorect the Schematron schema.

SCHEMATRON-KEY

Message Text

Incorrect namespace used for key element

Cause

The key element is in the ISO Schematron namespace.

Response

Correct the Schematron schema. The key element should be in XSLT namespace.

SCHEMATRON-KEY-NONAME

Message Text

The key element has no name attribute

Cause

The key element has no name attribute.

Response

Correct the Schematron schema.

SCHEMATRON-KEY-NOPATHORUSE

Message Text

The key element has no path or use attribute

Cause

The key element has no path or use attribute.

Response

Correct the Schematron schema.

SCHEMATRON-NAMESPACE

Message Text

Schematron elements in old and new namespaces are present

Cause

Schematron schema uses both old and new namespaces.

Response

Correct the Schematron schema.

SCHEMATRON-NS-NOPREFIX

Message Text

The ns element has no prefix attribute

Cause

The ns element has no prefix attribute.

Response

Correct your Schematron schema.

SCHEMATRON-NS-NOURI

Message Text

The ns element has no uri attribute

Cause

The ns element has no uri attribute.

Response

Correct your Schematron schema.

SCHEMATRON-PATTERNREFERENCE

Message Text

Pattern: variable1 is activated but not declared

Cause

Pattern declaration missing.

Response

Correct the Schematron schema.

SCHEMATRON-PHASE

Message Text

Invalid phase name: variable1

Cause

No phase has been defined with given the name.

Response

Correct your code.

SCHEMATRON-PHASE-NOID

Message Text

The phase element has no id attribute

Cause

The phase element has no id attribute.

Response

Correct the Schematron schema.

SCHEMATRON-QRYBINDING

Message Text

Invalid value of queryBinding attribute: variable1

Cause

Invalid value for queryBinding attribute is specified.

Response

Use a valid value for queryBinding attribute.

SCHEMATRON-REPORT-NOTEST

Message Text

The report element has no test attribute

Cause

The report element has no test attribute.

Response

Correct the Schematron schema.

SCHEMATRON-RULE-NOCONTEXT

Message Text

The rule element has no context attribute

Cause

The rule element has no context attribute.

Response

Correct the Schematron schema.

SCHEMATRON-RULEREFERENCE

Message Text

The abstract rule has been referenced but not declared

Cause

Abstract rule declaration missing.

Response

Correct the Schematron schema.

SCHEMATRON-SCHEMANOTFOUND

Message Text

Schematron with URI 'variable1' not found

Cause

No document exists in the Schema database with the document URI specified.

Response

Correct your code.

SCHEMATRON-UNKNOWN-SCHMTRNELEMENT

Message Text

Unknown Schematron element: variable1

Cause

Unknown Schematorn element is present.

Response

Correct the Schematron schema.

SCHEMATRON-UNKNOWNELEMENT

Message Text

Unknown element: variable1

Cause

Unknown element is present.

Response

Correct the Schematron schema.

SCHEMATRON-VALIDATORNOTFOUND

Message Text

Compiled Schematron for schema 'variable1' not found

Cause

The Schematron is not compiled and stored.

Response

Correct your code.

SCHEMATRON-VALUEOF-NOSELECT

Message Text

The value element has no select attribute

Cause

The value element has no select attribute.

Response

Correct the Schematron schema.

SCHEMATRON-VARIABLES

Message Text

Variables not allowed with 'xpath' and 'xpath2' query language bindings

Cause

Incorrect use of variables.

Response

Correct your Schematron schema.

Alert