Hi,

Yes i created a XsltToHeaderProcessor - If you like I can create a jira and
attach a patch if you think it would be useful for other people?

Thanks


Claus Ibsen-2 wrote:
> 
> XsltBuilder work on the exchange body only and as such it will affect
> your body, and I assume this is not what you want.
> 
> You can do you own custom XSLT transformation and set it on the header
> as a result to avoid affecting your body payload.
> 
> 
> 
> On Mon, Aug 3, 2009 at 12:45 PM, jpcook<[email protected]>
> wrote:
>>
>> Hi,
>>
>> Is it possible to set the value of a header via the result of an xslt
>> transform eg)
>>
>> .setHeader(INITIAL_DATA_HEADER, XsltBuilder.xslt(
>>                        new File("myXslt.xslt")))
>>
>> Currently this doesn't not compile as setHeader expects String, String. I
>> tried using toString but that just gives me back
>> xslt[net.sf.saxon.preparedstylesh...@775121 as per objects
>> implementation.
>>
>> I also tried outputString() but that doesn't actually return a String.
>>
>> There doesn't appear to be anything like convertBodyTo(String.class) but
>> surely this must be possible?
>>
>> Thanks
>> Jonathan
>> --
>> View this message in context:
>> http://www.nabble.com/setHeader-via-xslt-tp24788622p24788622.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
> 
> 
> 
> -- 
> Claus Ibsen
> Apache Camel Committer
> 
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
> 
> 

-- 
View this message in context: 
http://www.nabble.com/setHeader-via-xslt-tp24788622p24789911.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to