-
Notifications
You must be signed in to change notification settings - Fork 29
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
Validator fails on xslt compiled by schxslt 1.9.x and saxon-he 11.3 #98
Comments
well, if the compiled schematron contains higher-order-functions this won't work with the included Saxon HE and I don't think upgrading would solve this. If schxslt generates this kind of xsl instruction which is not supported by saxon HE, I would consider this as a bug or at least optimization potential of schxslt. |
Upgrading works. I am not into all changelogs of Saxon, but it has to do with XSLT3 etc. support and might work with versions > 10. However it surely works with 11.3. I tested it with this snippet: <target name="eforms-sdk-examples-validated-with-schxslt" depends="compile-test">
<xslt in="${eforms-sdk.instances.dir}/CEI.xml" style="${eforms-sdk.schematron.validator}" destdir="${reports.dir}" out="${reports.dir}/cei.svrl">
<classpath >
<pathelement location="${lib.dir}/${saxon-he.artifact.name}"/>
<pathelement location="${lib.dir}/xmlresolver-4.2.0.jar"/>
</classpath>
<factory name="net.sf.saxon.TransformerFactoryImpl" />
<!-- <fileset dir="${eforms-sdk.instances.dir}"/>-->
</xslt>
</target> which I just pushed to https://projekte.kosit.org/eforms/validator-configuration-eforms In any case, I suggest to upgrade all pom dependencies or at least Saxon to newest versions. It is also advisable to switch to schxslt based Schematron validation, because the ISO based one is officially deprecated in favor of schxslt. In my special case, I need it urgently, cause I have to deliver the validator-configuration-eforms by mid of July. |
The validator uses the Saxon HE version |
We will upgrade to a recent saxon version with the next release targeted for december |
upgraded to 11.4 in main |
Hi,
I am developing a new validator configuration at https://projekte.kosit.org/eforms/validator-configuration-eforms
There, I use
schxslt
andSaxon-He
in newest versions (seepom.xml
). When I try to run the validator with the compiled XSLT using the following ant snippet (seebuild.xml
):I get the following Error:
May a newer Saxon He Version help?
[java] 2022-07-09 00:57:25 [ERROR] Inline functions require support for higher-order-functions, which needs Saxon-PE or higher At row 38 at pos 0
The text was updated successfully, but these errors were encountered: