Assuming you're in XQuery it might look like this:
let $results :=
  <customers>{ //customer[location="Scotland"] }</customers>
let $rendition := saxon:compile-stylesheet(doc('show-customers.xsl'))
return saxon:transform($rendition, $results, (<location-param>Scotland</location-param>, <debug>true</debug>))
Note that you can only pass in atomic values for parameters (not nodes), and unless you go to the trouble of schema-validating the parameters document, the values will be untypedAtomic.
If you're in XSLT, you'll have to set the parameters up in a variable and then reference the variable in the function call.
Michael Kay

From: [] On Behalf Of
Sent: 27 June 2008 11:21
Subject: [saxon] Saxon:transform example with parameters

  could you please give an example of how you would pass a parameter into a stylesheet using the saxon:transform extension function.