W3C home > Mailing lists > Public > public-xformsusers@w3.org > May 2016

[XForms] XSLT use-case build/compile/run Schematron Schema within an Form.

From: Philip Fennell <Philip.Fennell@marklogic.com>
Date: Wed, 25 May 2016 14:39:09 +0000
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Message-ID: <62E46EC6-DE13-4FA1-AB83-CB2314E660FB@marklogic.com>
The attached ZIP contains, amongst other things, an XHTML+XForm document that is the building block for an XForm that would allow you to construct a Schematron schema, compile it using the reference implementation (XSLT) and then apply it to an instance data example of the document you’d like to validate the Schematron rules against.

This was originally developed under XSLTForms who’s output result of an XSLT transform was, then, an unparsed XML document so, as such, could be directly inserted into another instance.

The form:

Forms/forms/schematron.xml


Contains two models, ‘content’ and ‘rules’, which contain the instance data you wish to build the schema against and validate along with the schema and its compiled executable versions respectively.

In the rules model there are instances set aside for the source Schematron schema and various compilation stages of the compiled schema including the final executable XSLT plus an instance for the SVRL report.

The example form has an embedded Atom feed instance document, a source schema and a compiled Schematron schema that could be executed if there was a way to identify it as the transform to be applied.

At the time of creating this there was no means to orchestrate the various compilation transforms.

I have created other forms that, under XSLTForms, will apply a transform and generate the text-only schematron report that could be displayed in an xf:output. However I cannot currently find those examples.


Regards

Philip




Received on Wednesday, 25 May 2016 14:39:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:46 UTC