Re: XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Fixed it finally. I did not intend to use xalan for my transformations however Fuse was being forced to use this because of one the dependencies in my pom Saxon-HE. I upgraded to 9.5.1.1, and the maven dependency tree depicted that it no longer depended on xalan. I then used ?saxon=ture in my

Re: XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Bingo!! Exactly what i am facing. . I am using camel 2.12. As per the bug definition, this issue is a known issue for Xalan 2.7.1. Just checked my maven dependency tree, i can see *xalan:xalan:jar:2.7.0:compile* net.sf.saxon:Saxon-HE:jar:9.4:compile [INFO] | +- org.jdom:jdom:jar:1.1:compile

Re: XSLT transformation produces junk charachters

2014-07-24 Thread Grzegorz Grzybek
Hello See this issue in CAMEL: https://issues.apache.org/jira/browse/CAMEL-7424 and this issue in CXF: https://issues.apache.org/jira/browse/CXF-5733 What version of Camel do you use? regards Grzegorz Grzybek 2014-07-24 14:34 GMT+02:00 vdhawan : > Thanks again Franz. > > Debugged a little bit

Re: XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Thanks again Franz. Debugged a little bit more and it doesnt look like a type conversion issue. If i pass just tinker with input xml to the xslt, it works in some cases. More specifically *does not* work and http://mynamespace> works. P.S - I am using xsl:copy-of select=*node()|@* in my XS

Re: XSLT transformation produces junk charachters

2014-07-24 Thread Franz Paul Forsthofer
Hi, then you should try to find out how the DOMSource is transformed to String. I guess it is transfomed first to a Stream and then to String. In this case you need the correct encoding. Regards Franz On Thu, Jul 24, 2014 at 2:02 PM, vdhawan wrote: > Thanks for response Franz. > > Bean returns

Re: XSLT transformation produces junk charachters

2014-07-24 Thread vdhawan
Thanks for response Franz. Bean returns an object of javax.xml.transform.Source. Source s = new DOMSource(myObj) exchange.getOut().setBody(s); Thanks -- View this message in context: http://camel.465427.n5.nabble.com/XSLT-transformation-produces-junk-charachters-tp5754357p5754366.html Sent

Re: XSLT transformation produces junk charachters

2014-07-24 Thread Franz Paul Forsthofer
Hi, what format does return the bean, if it is a byte array or stream then you have to specify the encoding in the step: Regards Franz On Thu, Jul 24, 2014 at 12:17 PM, vdhawan wrote: > Hello, > > In my camel context, i invoke a java bean (which does some processing) and > returns the body in