How to pass the params into saxon:transform in Orbeon Xforms

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

How to pass the params into saxon:transform in Orbeon Xforms

Chunyu_uk
Hello,

I could not find any documentations about how to pass the params into the saxon:transform().

Please see the following code in my Xform.

<xf:insert nodeset="instance('fr-form-instance')" origin="saxon:transform( saxon:compile-stylesheet(instance('stylesheet')/root()),              saxon:parse(saxon:serialize(instance('project-sda'), 'xml')))"/>

I'd like to pass in a param to the xslt transformation process.

How to do it please?

Thanks,
Chunyu Wilson
         
Reply | Threaded
Open this post in threaded view
|

Re: How to pass the params into saxon:transform in Orbeon Xforms

Alessandro  Vernet
Administrator
Hi Chunyu,

I don't know if I've ever used this myself, but you can use the 3rd parameter to saxon:transform() to pass parameters. You'll find more information about how to do so in the Saxon documentation here:

http://www.saxonica.com/html/documentation9.1/extensions/functions/transform.html

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet