So the 2.1 validation is both XSDs first, then the Schematron rules.
(I thought we had removed the XSDs altogether and Schematron was replacing that, my mistake).
Localization Solutions Architect | t: 303.951.4523 | f: 303.516.1701 | ENLASO®
From: Soroush.Saadatfar [mailto:Soroush.Saadatfar@ul.ie]
Sent: Monday, June 12, 2017 9:01 AM
To: Yves Savourel <email@example.com>
Cc: XLIFF Main List <firstname.lastname@example.org>
Subject: Re: [xliff] XSLT template for validation
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:
1) The Schematron-corresponding XSLT(s) that generates the error reports when run against the input file
2) Examples 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 | Boulder | Colorado 80301
t: 303.945.3759 | f: 303.516.1701
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.