validateSchematron2validateSchematron2
Schematron validation with XPath v2.0 support
Home > Books > NetKernel API and Services Reference > Accessor Listing > XQuery > validateSchematron2

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Module

urn:org:ten60:netkernel:ext:xquery

The validateSchematron2 accessor is exported by the urn:org:ten60:netkernel:ext:xquery module. Import this module to gain access to the accessor.

Syntax

URI
active:validateSchematron2

ArgumentRulesDescription
operandMandatory the resource to be tested
operatorMandatory a schematron 1.5 schema with Xpath 2.0 assertions

Example Usage

DPML

<instr>
  <type>validateSchematron2</type>
  <operand>foo.xml</operand>
  <operator>schema.xml</operator>
  <target>this:response</target>
</instr>

NetKernel Foundation API

req=context.createSubRequest("active:validateSchematron2");
req.addArgument("operand", [resource representation, aspect, or URI] );
req.addArgument("operator", [resource representation, aspect, or URI] );
result=context.issueSubRequest(req);

Purpose

The validateSchematron2 accessor is used to validate an XML document with a Schematron 1.5 schema. This variant supports the use of XPath 2.0 expressions for assertions.

This accessor uses the Saxon XPath 2.0 engine which complies with the W3C XPath 2.0 draft specification.

xpath2eval returns a canonical boolean document.

© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.