camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Franz Paul Forsthofer <emc2...@googlemail.com>
Subject Re: XSLT transformation produces junk charachters
Date Thu, 24 Jul 2014 11:43:51 GMT
Hi,

what format does return the bean, if it is a byte array or stream then
you have to specify the encoding in the <convertBodyTo type="String"/>
step:<convertBodyTo type="String"  charset="your encdong" />

Regards Franz

On Thu, Jul 24, 2014 at 12:17 PM, vdhawan <vaibhav.10.dhawan@gmail.com> wrote:
> Hello,
>
> In my camel context, i invoke a java bean (which does some processing) and
> returns the body in the exchange. So far so good.
>
> <from uri:file://blablba>
> <bean ref="myBean" />
> <log message="${body}"></log>
> <convertBodyTo type="String"/>
> <to uri="xslt:Myxslt.xslt" />
> <log message="${body}"></log>
>
> The second log message prints shows the XSLT transformation results in some
> junk charachters like </></></> and i can see an error in the logs
> javax.xml.transform.TransformerException: Unexpected character ' ' (code 32)
> in content after '<' (malformed start element?).
>
> Running the transformation file a stand alone transformation produces
> expected results, its only when running on OSGi, that it fails.
>
> My pom includes the following
> camel-core
> camel-spring
> cxf-rt-transports-http
> cxf-rt-frontend-jaxws
> Saxon-HE (9.0.4)
>
> Camel version is 2.12
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/XSLT-transformation-produces-junk-charachters-tp5754357.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message