camel-users mailing list archives

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


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?

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message