The docs at http://docs.marklogic.com/schematron suggest that the Schematron API be imported via "http://marklogic.com/xdmp/schematron" at "/MarkLogic/schematron/schematron.xqy"
On RHEL ML 9.0-6.2, /MarkLogic/schematron/schematron.xqy
does not appear to be part of the deployed product (verified on fs) and consequently gives an XDMP-MODNOTFOUND: (err:XQST0059) Module /MarkLogic/schematron/schematron.xqy not found
when trying to import module namespace schematron = "http://marklogic.com/xdmp/schematron" at "/MarkLogic/schematron/schematron.xqy";
Has Schematron support been isolated as part of an optional package, or is this an oversight in the 9.0-6.2 RHEL release?
EDIT: xquery test case (e.g., from qconsole)
xquery version "1.0-ml";
import module namespace schematron = "http://marklogic.com/schematron" at "/MarkLogic/schematron/schematron.xqy";
"this should pass for xquery anywhere"
response:
[1.0-ml] XDMP-MODNOTFOUND: (err:XQST0059) Module /MarkLogic/schematron/schematron.xqy not found
Using 9.0-7
this works for me:
import module namespace schematron = "http://marklogic.com/xdmp/schematron"
at "/MarkLogic/schematron/schematron.xqy";
"this should pass for xquery anywhere"
Notice how i import the namespace "http://marklogic.com/xdmp/schematron"
including a xdmp
which you do not.
The documentation seems to be wrong in this case.