THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Code Block |
---|
from("activemq:My.Queue"). to("xslt:com/acme/mytransform.xsl"). to("activemq:Another.Queue"); |
Getting Parameters into the XSLT to work with
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 'useable'.
Code Block | ||||
---|---|---|---|---|
| ||||
<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.
Code Block | ||||
---|---|---|---|---|
| ||||
<xsl: ...... >
<xsl:param name="myParam"/>
<xsl:template ...>
|
Spring XML versions
To use the above examples in Spring XML you would use something like
...