-
Notifications
You must be signed in to change notification settings - Fork 2
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
ODD to ISO Schematron conversion fails after TEI P5 4.9.0 update #121
Comments
Thank you for opening this issue, I will have a look into it |
I'm not sure but I was recently facing a similar(?) error with the odd2schematron conversion: TEIC/Stylesheets#729 @SebastianKohler could you try to transform your ODD on the command line and report your findings (along with your Saxon version)? Or could you share your ODD file for us to test? |
@peterstadler My ODD file is here: https://github.com/slsfi/digital-edition-xml-resources/blob/main/tei-odd/tei_sls_master.odd I appreciate if you could test it. I tried to transform it using https://github.com/TEIC/Stylesheets/blob/dev/odds/extract-isosch.xsl in Oxygen (Saxon-EE 12.3) and got an error from line 143 in the xsl-file: |
So, here are my findings:
# java -jar ~/lib/saxon9he/saxon9he.jar -s:/Users/pstadler/Downloads/tei_sls_master.xml -xsl:/Users/pstadler/repos/Stylesheets/odds/extract-isosch.xsl ~/Downloads
Static error at xsl:template on line 464 column 94 of extract-isosch.xsl:
The path in a pattern must contain simple steps
Errors were reported during stylesheet compilation does not work! java -jar ~/lib/SaxonHE12-5J/saxon-he-12.5.jar -s:/Users/pstadler/Downloads/tei_sls_master.xml -xsl:/Users/pstadler/repos/Stylesheets/odds/extract-isosch.xsl lang=en works! So, the quick fix for you @SebastianKohler might be to add the For the TEIGarage it seems we'll need to strive for a Saxon update. |
Since TEI P5 was updated to version 4.9.0 and the stylesheets to 7.58.0 I'm unable to convert my TEI customization from an ODD document to ISO Schematron constraints.
TEIGarage gives the following error message:
The ODD document is valid and I can convert it to a compiled ODD document with TEIGarage without errors. The compiled ODD is, however, not valid because the
xml:base
attribute on the document root is empty:Oxygen informs me that
I can convert my ODD document to an XSD schema without errors, and the schema works as intended. It's just that the conversion to Schematron fails.
How can I find out if there is an issue in my ODD, or is there an issue in the updated stylesheets that TEIGarage uses?
The text was updated successfully, but these errors were encountered: