allow xsl:params in Schematron #146

Merged
merged 1 commit into from May 6, 2014

Conversation

Projects
None yet
2 participants
@gimsieke
Contributor

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.”

allow xsl:params in Schematron
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

Merge pull request #146 from gimsieke/patch-2
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

@xml-project xml-project referenced this pull request in xproc/3.0-specification Nov 21, 2017

Open

Clarify specification of p:validate-with-schematron #237

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment