Recall that a Schematron assertion is made using an XPath expression
Thus far we have been using XPath 1.0 to express assertions
Alternatively, you can express assertions using XPath 2.0
Validators
Oxygen XML supports using Schematron with XPath 2.0
As of May 2007, Topologi does not support using Schematron with XPath 2.0
Using XPath 2.0 in Oxygen XML
By default, Oxygen uses XPath 1.0
To switch to XPath 2.0 do this:
Under Oxygen's Options menu, select Preferences
Under XML, select XML Parser
Under "Schematron XPath Version", click on 2.0
Example
An aircraft's takeoff datetime must be before its landing datetime.
This co-constraint in expressed in check-times.sch (example10 folder).
Note that the schema's assertion uses the XPath 2.0 "lt" (less than) comparison operator.
Validate valid-document.xml and invalid-document.xml (example10 folder) against the schema using Oxygen XML. Be sure to set Oxygen to use XPath 2.0 (see previous slide).