tree: fa142990d1884705cb2eac123b0c44a57e02418e [path history] [tgz]
  1. src/
  2. README.md
daffodil-schematron/README.md

Schematron Validation

Daffodil Validator API implementation for ISO Schematron in XSLT2.

Supports standalone sch files or embedded schematron rules within the Daffodil schema.

Configuration

Parameters

  • schematron: default parameter provides path to the schematron file or resource

XSLT & XPATH versions

Schematron defaults to 1.0 of both XSLT and XPath. Use 2.0 by setting sch:queryBinding="xslt2" on the schema.

See version support comments in the XSL for more details.

Parse Results

  • SchematronValidationError on failed rule check

SPI registration

Registered as schematron

Validators.get("schematron")

Command Line Usage

The schematron argument to the --validate flag will provide the schematron parameter and initiate the parsing.

daffodil parse --validate schematron=my.sch ...

References