Cannot pass static parameters to XSLT refactoring operation
Posted: Tue Dec 20, 2022 12:21 am
In refactoring operations, I would like to allow the user to turn some features on and off. So I tried defining some static stylesheet parameters, then used them to enable templates with use-when:
However, Oxygen gives me the following error when running the stylesheet from Oxygen's refactoring operation window:
But if I run it from the command line, it works:
then it works.
Am I doing something wrong? I found a similar issue here:
Configure transformation scenarios boolean
but I am not sure if it is the same issue.
Here is a testcase:
Code: Select all
<xsl:param name="remove.rev" as="xs:boolean" select="true()" static="yes"/>
<xsl:template use-when="$remove.rev"
match="...">
...
</xsl:template>
Code: Select all
Parameter $remove.rev cannot be supplied dynamically because it is declared as static
Code: Select all
java -jar ~/saxon/saxon-he-11.4.jar -s:OPENME2.dita -xsl:refactoring/post-release-cleanup.xsl
Am I doing something wrong? I found a similar issue here:
Configure transformation scenarios boolean
but I am not sure if it is the same issue.
Here is a testcase: