Loading TOC...

MarkLogic 9 Product Documentation
schematron.get

schematron.get(
   schematron-uri as String
) as Node

Summary

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.

Example


const schematron = require("/MarkLogic/schematron/schematron.xqy");

schematron.get("/requestSchema.sch") 

==>

returns the compiled Schematorn schema (validator XSLT) 
 
    

Stack Overflow iconStack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.