Getting Parameters into the XSLT to work with - 6.3

Talend ESB Mediation Developer Guide

EnrichVersion
6.3
EnrichProdName
Talend Data Fabric
Talend Data Services Platform
Talend ESB
Talend MDM Platform
Talend Open Studio for ESB
Talend Real-Time Big Data Platform
task
Design and Development
EnrichPlatform
Talend ESB

By default, all headers are added as parameters which are available in the XSLT.

To do this you will need to declare the parameter so it is then usable.

<setHeader headerName="myParam"><constant>42</constant></setHeader>
<to uri="xslt:MyTransform.xsl"/>  

And the XSLT just needs to declare it at the top level for it to be available:

<xsl: ...... >
   <xsl:param name="myParam"/>
     <xsl:template ...>