Project

Profile

Help

Support #6055

closed

PHP SaxonC - How to work with a schematron file?

Added by Steve Goffinet 12 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Category:
PHP API
Start date:
2023-05-31
Due date:
% Done:

0%

Estimated time:
Found in version:
Platforms:

Description

Hello,

I have a problem implementing the SaxonC PHP extension. I managed to install the extension and it is loaded. As the validatorExamples.php is working I assume the class works as expected.

I am new to xslt and schematron and after doing some research I believe to understand that SaxonC cannot work with schematron files and it needs to be converted to an xsd or xsl file. Could you please advise me how to proceed with my schematron file? To what format shall I convert my schematron file and how do I do that to make it work? Or maybe there is a different approach?

Here is the definition of my file:

I would be very happy about an guiding hand.

Thank you and best regards Steve

Environement:

PHP: 7.3 Debian 4.19.208-1 (2021-09-29) x86_64 Saxon 11.5

Results from : validatorExamples.php

PHP Schema Validation in SaxonC examples Saxon Processor version: SaxonC-PE 11.5 from Saxonica exampleSimple1: Doc is valid

exampleSimple2: Doc family.xml is valid!

exampleSimple3: Error: Doc is not valid!


Files

jet_err_22775.txt (159 KB) jet_err_22775.txt Steve Goffinet, 2023-06-01 16:43
text.xml (4.68 KB) text.xml Steve Goffinet, 2023-06-02 12:52
PEPPOL-EN16931-UBL.sch (67.6 KB) PEPPOL-EN16931-UBL.sch Steve Goffinet, 2023-06-02 12:53
EN16931-UBL.xslt (286 KB) EN16931-UBL.xslt Steve Goffinet, 2023-06-02 12:53

Please register to edit this issue

Also available in: Atom PDF