I'm trying to use an XPath 2.0 (regular expression) function, and I'm seeming to have a problem with the supposedly optional namespace "fn" when I try to validate Schematron. The error message I get is:
Code: Select all
The URI http://www.w3.org/2003/11/xpath-functions does not identify an external Java class
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://purl.oclc.org/dsdl/schematron" xmlns:tei="http://www.tei-c.org/ns/1.0" xmlns:fn="http://www.w3.org/2003/11/xpath-functions">
<ns prefix="tei" uri="http://www.tei-c.org/ns/1.0" />
<ns prefix="fn" uri="http://www.w3.org/2003/11/xpath-functions" />
<pattern id="Bahai_Date">
<rule context="tei:date/@calendar">
<assert test="fn:matches(., 'Bahai')">The date's calendar should be set to "Baha'i"</assert>
</rule>
</pattern>
</schema>