Dear Yves, all,
I was planning to publish the XSLT after the public review, but will make the first draft later this week.
WRT XSD validation, I am not sure if it can be embedded into the XSLT as well, but for now it will only represent the schematron rules.
I guess I will need two things eventually:
Schematron-corresponding XSLT(s) that generates the error reports when run against the input file
of the error report, so it can potentially be adapted for the tool(s) running the validation.
You just gave me #2, thank you very much.
My goal is to see if I can use the XSLTs instead of the XSD schemas to validate 2.1 files from the Okapi library.
Having to add a dependency to a XSLT2 processor it quite annoying, but I suppose it cannot be helped.
The only open-source Java implementation of XSLT2 seems to be Saxon-HE. It’s big and has itself a bunch of dependencies.
I guess I’ll have to somehow separate the XSLT validation and the core functionality. If I can’t I’ll probably drop the XSLT validation altogether.
Thanks for the examples: it’s a good start.
Do you need for each schematron file in the schemas directory the corresponding XSLT which generates the error report? The error report is in XML, the so called svrl language, see an example here
That page is in german, but the input and svrl output should help to get the idea.
I was wondering if there would be any chance to get the XSLT output for the 2.1 validation at some point soon.
It doesn’t need to be final, but if it’s not too time consuming to generate it would be a good time to test the current version of the Schematron rules.
Localization Solutions Architect | ENLASO
4888 Pearl East Circle |
Suite 300E |
303.945.3759 | f:
An ISO 9001:2015 certified company
The information in this transmittal may be privileged and confidential and is intended only for the recipient(s) listed above. Any review, use, disclosure, distribution or copying of this transmittal, in any form, is prohibited except by or on behalf of the
intended recipient. If you have received this transmittal in error, please notify me immediately by reply email and destroy all copies of the transmittal.