Is it possible to assign a value to a parameter of an imported stylesheet?
I was expecting something like
Just to add to lwburk's excellent answer (+1), here's one more example of assigning a value to a parameter in an imported stylesheet.
You wouldn't need to add xsl:param
to the main stylesheet; you would just assign the value when you called the stylesheet (on the command line for example).
main.xsl
import.xsl
example saxon command line (setting new parameter value)
java -cp "saxon9.jar" net.sf.saxon.Transform -s:input.xml -xsl:main.xsl -o:output.xml param="kuba"
output.xml
kuba