schematron:get( $schematron-uri as xs:string ) as document-node()
This function returns the validator XSLT from the modules database. If Schematron schema
is not found a SCHEMATRON-SCHEMANOTFOUND
error is thrown. If validator XSLT
is not found, SCHEMATRON-VALIDATORNOTFOUND
error is thrown.
Parameters | |
---|---|
schematron-uri | The URI of the Schematron schema in the schema database. |
xquery version "1.0-ml"; import module namespace schematron = "http://marklogic.com/xdmp/schematron" at "/MarkLogic/schematron/schematron.xqy"; schematron:get("/userSchema.sch") ==> returns the compiled Schematorn schema (validator XSLT)