Skip to content
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

extract-isosch.xsl:464:94: Fatal Error! The path in a pattern must contain simple steps #729

Open
peterstadler opened this issue Jan 27, 2025 · 2 comments
Assignees

Comments

@peterstadler
Copy link
Member

Is this just me or is anyone else facing this issue?

My processing (of ODD to schematron )chokes on this pattern:

<xsl:template match="tei:constraint[ ../@scheme eq 'schematron' ]/(sch:report|sch:assert)">

Rewriting it to

tei:constraint[ ../@scheme eq 'schematron' ]/sch:report | tei:constraint[ ../@scheme eq 'schematron' ]/sch:assert

removes the error.

@sydb sydb added this to the Release 7.59.0 milestone Jan 28, 2025
@trishaoconnor trishaoconnor assigned sydb and unassigned sydb Jan 28, 2025
@sydb
Copy link
Member

sydb commented Jan 28, 2025

@peterstadler — What process are you using to generate Schematron from ODD, and what XSLT engine is it running? (We are using saxon10he.jar in the Stylesheets repo, I think.)

(I am not against making this change, but this works for me using both bin/teitoschematron --oddbin/teitoschematron --odd and directly executing that XSLT against an ODD using saxon10he.jar.)

@peterstadler
Copy link
Member Author

Thanks for prompt response @sydb . Indeed, I'm was using Saxon-HE 9.8.0.15J for the failing transformation. Running with SaxonJ-HE 12.5 works.

I leave it to you whether you simply want to close the issue or whether you want to make the code more backwards compatible …

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants