Hi Guru,

I don't know if I get the problem right but you can set parameters on xsl 
processing through headers.
Sou you can do:

<from .../>
...
<setHeader name="myParameter">...</setHeader>
<to uri="xslt:..."/>

Then in the xsl file you can do:

<xsl:param name="myParameter"/>

And then you can reference it during processing with ${myParamter}. So you do 
could extract the interesting thing form the message and only put this in a 
specific header so that it is available for xslt processing. Does that help you?

Greetings,
Pascal

_____________________________________________________________________________________________________________________________________________________________________
 

Gesendet: Dienstag, 01. April 2014 um 16:14 Uhr
Von: "Reji Mathews" <contactr...@gmail.com>
An: users@camel.apache.org
Betreff: Re: Camel XSLT Param - Issue ( Body is null )
Hi Guru

I doubt if you can send parameters to xsl component.
The body has to contain a XML payload. Or maybe u might need to do it in
custom java code using camel processor .

How about temporarily swapping the parameter value with the exchange body
just before using the xslt component and restore it back after the xsl
transformation is done .

Regards
Reji
On 01/04/2014 9:58 am, "Gnanaguru S" <gnanagu...@gmail.com> wrote:

> What will happen in case if I use a JMS endpoint ?
>
> 1. I have a request message from a JMS queue, once the message is received
> I
> want to pass a parameter to the XSL file.
>
> 2. But I dont want to send the payload from the JMS queue to the xsl !
>
> Any thoughts ?
>
> Regards
> Guru
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-XSLT-Param-Issue-Body-is-null-tp5749582p5749589.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Reply via email to