-
Notifications
You must be signed in to change notification settings - Fork 10
The p:xslt step doesn't support passing parameters to the initial template #695
Description
It has template-name, but no mechanism for passing parameters to that template. Two sets are required, one for tunneled parameters and one for parameters that aren't tunneled.
From Call-Template Invocation in the XSLT spec:
Parameters, which will be passed to the selected template rule. The parameters consist of two sets of (QName, value) pairs, one set for tunnel parameters and one for non-tunnel parameters, in which the QName identifies the name of a parameter and the value provides the value of the parameter. Either or both sets of parameters may be empty. The effect is the same as when a template is invoked using xsl:call-template with an xsl:with-param child specifying tunnel="yes" or tunnel="no" as appropriate. If a parameter is supplied that is not declared or used, the value is simply ignored. These parameters are not used to set stylesheet parameters.
I can't think of a nice way to deal with both sets of parameters in a single option. I can think of a couple of different contrived ways, but they're pretty ugly to use.
Add template-parameters and template-tunneled-parameters options? Presumably it's an error to specify either of those if template-name is not specified.