-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XSLT/SCH files #37
Comments
I have no idea to be honest. I have never worked with Schematron. The error feedback you get from this package is not very good. So I cannot help you right now. If you succeed I am interested to know. |
I am also trying to implement a Schematron validation, but don't get it to work. xslt file: https://github.com/schxslt/schxslt/blob/master/core/src/main/resources/xslt/2.0/pipeline-for-svrl.xsl I am getting this Exception: The problem is obviously caused by the included file: https://github.com/schxslt/schxslt/blob/master/core/src/main/resources/xslt/2.0/svrl.xsl My code looks like this: `$pipeline_for_svrl = new \DOMDocument(); $schema = new \DOMDocument(); $xslt = new XsltProcessor( new NullCache() ); $transformed = $xslt->transformToXML( $schema );` |
That's a duplicate of issue #33. We do not have support for xsl:sequence yet. |
Currently, I'm looking to use this library if my use-case is covered by this one.
I explain :
To validate an e-invoicing (electronic invoice), I have to execute a Schematron on the XML file.
I have this .xslt file : https://github.com/ConnectingEurope/eInvoicing-EN16931/blob/master/cii/xslt/EN16931-CII-validation.xslt
I have this .sch file : https://github.com/ConnectingEurope/eInvoicing-EN16931/blob/master/cii/schematron/EN16931-CII-validation.sch
If someone can help me but it's the first time I'm working with Schematron. I would like to get all errors from my XML after validation with the XSLT/SCH file.
The only feedback I have for the moment :
Genkgo\Xsl\Exception\TransformationException: Transformation failed: XSLTProcessor::importStylesheet(): Invalid expression
And my code :
$xml
is a\DOMDocument
The text was updated successfully, but these errors were encountered: