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

allow xsl:params in Schematron #146

Merged
merged 1 commit into from May 6, 2014
Merged

allow xsl:params in Schematron #146

merged 1 commit into from May 6, 2014

Conversation

@gimsieke
Copy link
Contributor

@gimsieke gimsieke commented Apr 10, 2014

It was asked on xproc-dev whether it was possible to pass parameters to Schematron let declarations. While this is not possible, I sketched a way how to allow foreign markup in Schematron and use xsl:param within the Schematron.
While xsl:* may already be enabled by passing the parameter allow-foreign = 'true' to the p:validate-with-schematron step, the step’s parameters won’t currently propagate to the final pass, when the generated XSLT is applied to the document.
So I suggest that we supply the same parameters also to the final pass.
The spec doesn’t seem to disallow this; it is kind of fuzzy on this whole parameter thing in p:validate-with-schematron: “The parameters port provides name/value pairs which correspond to
Schematron external variables.”

It was asked on [xproc-dev](http://lists.w3.org/Archives/Public/xproc-dev/2014Apr/0000.html) whether it was possible to could pass parameters to Schematron `let` declarations. While this is not possible, I sketched a way how to allow foreign markup in Schematron and use `xsl:param` within the Schematron. 
While `xsl:*` may already be enabled by passing the parameter `allow-foreign = 'true'` to the `p:validate-with-schematron` step, the step’s parameters won’t currently propagate to the final pass, when the generated XSLT is applied to the document. 
So I suggest that we supply the same parameters also to the final pass.
The spec doesn’t seem to disallow this; it is kind of fuzzy on this whole parameter thing in `p:validate-with-schematron`: “The parameters port provides name/value pairs which correspond to 
Schematron external variables.”
ndw added a commit that referenced this pull request May 6, 2014
Pass parameters on p:validate-with-schematron to all Schematron phases.
@ndw ndw merged commit 32a3c01 into ndw:saxon95 May 6, 2014
ndw added a commit that referenced this pull request May 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.