Package gov.nist.secauto.decima.xml.assessment.schematron
Provides ISO Schematron-based assessment capabilities.
Note: an id is required for pattern, rule, assert, and report elements to allow computation of evaluated elements at runtime.
The following example illustrates the typical way of setting up an XML Schema-based assessment for execution:
{
@code
// Set the Schematron phase to use (optional)
String phase = "phase1";
// Load the Schematron and create the assessment
SchematronAssessment assessment = new SchematronAssessment(new URL("classpath:schematron-file.sch"), phase);
// setup Schematron parameters (optional)
assessment.addParameter("param1", "value1");
assessment.addParameter("param2", "value2");
// Set result directory for compiled schematron and SVRL output (optional)
assessment.setResultDirectory(new File("svrl-result"));
// the assessment can now be executed
}
-
Interface Summary Interface Description IdAwareSchematronHandler SchematronHandler SVRLHandler -
Enum Summary Enum Description SchematronAssertionEntry.AssertionType