Search code examples
marklogic

Does MarkLogic provides schematron support?


I am using MarkLogic 8.0-8 version.

Is it possible to validate an XML using schematron?

Please help me with an example.


Solution

  • Yes, as of MarkLogic 9.0.7, there is built-in support for Schematron.

    http://docs.marklogic.com/schematron

    To use the schematron XQuery library module as part of your own XQuery module, include the following lines in your XQuery prolog:

        import module namespace schematron = "http://marklogic.com/xdmp/schematron"
            at "/MarkLogic/schematron/schematron.xqy";
    

    For more information and usage examples, see the Validating Schemas Using Schematron section in the Application Developers Guide.