camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpcook <jonathan.c...@erars.plus.com>
Subject setHeader via xslt
Date Mon, 03 Aug 2009 10:45:12 GMT

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.PreparedStylesheet@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.


Mime
View raw message