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

Support XSLT 1.0 #13

Merged
merged 3 commits into from Oct 26, 2021
Merged

Support XSLT 1.0 #13

merged 3 commits into from Oct 26, 2021

Conversation

ndw
Copy link
Collaborator

@ndw ndw commented Oct 26, 2021

I'm not convinced this was an especially useful thing to do, but I was curious about whether or not it would be possible.

There's a new configuration setting: cc:xslt10-classpath. This must identify the Saxon 6.5.5 jar file. It can be repeated to identify other paths or jars that are also needed.

If there is at least one path in the xslt10-classpath, then XML Calabash 3 will attempt to process XSLT 1.0 stylesheets with it. The interface is a bit crude, serializing the source and stylesheet into strings in order to pass them into the processor.

It's all done with reflection and a custom ClassLoader so the Saxon 6.5.5 jar file does not have to be on the classpath, and probably shouldn't be as undoubtably it contains classes that would conflict with the Saxon 10 classes.

@ndw ndw merged commit 60401e6 into xmlcalabash:main Oct 26, 2021
@ndw ndw deleted the xslt-10 branch October 26, 2021 08:57
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

Successfully merging this pull request may close these issues.

None yet

1 participant