Giter Club home page Giter Club logo

ml-schematron's Introduction

Hello,

This repository includes a schematron.xqy module that will allow you to
perform Schematron validation with MarkLogic Server version 4.2.

To enable Schematron globally:

1. Copy Modules/schematron.xqy into your server's Modules directory
2. Create Modules/Schematron
3. Copy the ISO Schematron distribution into Modules/Schematron

To enable Schematron for only a selected application:

1. Copy Modules/schematron.xqy into your application's modules directory
   or database.
2. Copy the ISO Schematron distribution into your application's modules
   directory or database.
3. Edit schematron.xqy. Change the variable declarations:

   declare variable $include := "/Schematron/iso_dsdl_include.xsl";
   declare variable $expand  := "/Schematron/iso_abstract_expand.xsl";
   declare variable $compile := "/Schematron/iso_svrl_for_xslt2.xsl";

   so that they point to the Schematron that you installed under your
   application.

Docs, etc. to follow. (In the fullness of time, like the next ice age,
probably. If you have questions, feel free to ask.)

You can test your install by running test/default.xqy. If it returns
"PASS", then you win. Otherwise, well, you don't. Let me know if it's
not obvious what's gone wrong.

Please note: if your schemas have the .sch file extension, then by
default MarkLogic will view them as binary files and the stylesheets
won't work. To fix this problem, either explicitly set the type to XML
when you load the files, or add a MIME type specification in the
Mimetypes admin UI asserting that .sch files are application/xml
before you begin loading them.

ml-schematron's People

Contributors

ndw avatar

Watchers

Brian Sletten avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.