camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pascal Klink" <>
Subject Aw: Re: Camel XSLT Param - Issue ( Body is null )
Date Tue, 01 Apr 2014 14:35:21 GMT
Hi Guru,

I don't know if I get the problem right but you can set parameters on xsl processing through
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?



Gesendet: Dienstag, 01. April 2014 um 16:14 Uhr
Von: "Reji Mathews" <>
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 .

On 01/04/2014 9:58 am, "Gnanaguru S" <> 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:
> Sent from the Camel - Users mailing list archive at

View raw message