Thank you Christophe,
Unfortunately the current interface for saxon:transform() only
allows atomic values to be passed as the values of the parameters.
Now that maps are available, it makes sense to allow the parameters
to be passed as a map, allowing any kind of value.
Yes, it didn't work because the node
was not named as the value of the parameter.
Now it works but i have an
question, how should i do so that in the parameter contextSparc
i get the nodeset and not the atomic value.
In fact, I would like to be able
do someting like <xsl:copy-of select="$contextSparc/what"/>