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

XSLT2 support #4

Closed
comp64 opened this issue Jul 21, 2020 · 2 comments
Closed

XSLT2 support #4

comp64 opened this issue Jul 21, 2020 · 2 comments

Comments

@comp64
Copy link

comp64 commented Jul 21, 2020

Hi,
any chances of supporting XSLT2 ? You would gain a reward of having the only PHP solution for validating against XSLT2 schematrons.
See the exception attached. In case of interest, I'll provide you with both the schematron file and some xmls.

PHP Fatal error:  Uncaught Milo\SchematronException: Query binding 'xslt2' is not supported. in /xstest/vendor/milo/schematron/src/Schematron.php:546
Stack trace:
#0 /xstest/vendor/milo/schematron/src/Schematron.php(230): Milo\Schematron->loadSchemaBasics()
#1 /xstest/vendor/milo/schematron/src/Schematron.php(206): Milo\Schematron->loadDom()
#2 /xstest/src/App.php(13): Milo\Schematron->load()
#3 /xstest/src/main.php(5): Comp\App->run()
#4 {main}
  thrown in /home/comp/websupport/xstest/vendor/milo/schematron/src/Schematron.php on line 546
@milo
Copy link
Owner

milo commented Nov 4, 2020

Hi,
todays, I'm upgrading some of my libraries to support PHP 8, Schematron is one of them.
If you are still interested, send me SCH & XML and I'll try that.

@milo
Copy link
Owner

milo commented Nov 4, 2020

Well, I've done small research - the xslt2 query binding means that XPath 2 is used. Unfortunately, XPath in current PHP supports only 1.0. So, I'd have to implement XPath 2 functionality and it is overhead for this library.

@milo milo closed this as completed Nov 4, 2020
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