UB-Mannheim / ocr-fileformat

Validate and transform various OCR file formats (hOCR, ALTO, PAGE, FineReader)
https://digi.bib.uni-mannheim.de/ocr-fileformat/
MIT License
176 stars 23 forks source link

Compatibility of XSLT 1.0 with new Saxon HE #107

Closed zuphilip closed 4 years ago

zuphilip commented 4 years ago

Some XSLT transformations like alto2.0__alto3.0 defined to use version 1.0 of XSLT which produces now with the new Saxon HE an error:

XTDE0160: XSLT 1.0 compatibility mode is not available in this configuration in built-in template rule for /alto in the unnamed mode

Moreover, if we run a v2.0 XSLT script (e.g. alto__text) now with the new Saxon HE there is the following warning:

Warning at xsl:stylesheet on line 8 column 54 of alto__text.xsl:
  Running an XSLT 2.0 stylesheet with an XSLT 3.0 processor

Is there some option we should use for the Saxon call? Should we update/redefine the XSLT v1.0 scripts to v2.0?