Hi, The document generation system is not directly exposed for consuming in internet.
We have custom library classes which we invoke and it return the document as byte[]. once i get the response as byte array,i need to create an xml with just a root element pdf-data. I am assuming that if i define pdf-data as type="xs:base64binary" i can place the binary content in xml <pdf-data> %PDF-1.4 %???? 5 0 obj << /Length 6 0 R /Filter /FlateDecode >> stream x??}K?m?m?\?BC?J>??Y??]??S?M?4IG?l???<}6H~?\k?Ew?????$? ????}?????}???7??????^뿿kq/???????|?W?~??i????????ο?z_?[??+???? ?r??O? ]?/?c?? pv/ ??P????U?????@[{9?p?9A?w???N????r???????c}?? ?????? ???n?????P#??h>?mc???j?????/6?????Ecc???{u=?? z?L?A??L??? ?H??O?Z?HXo?L?`?0??u? ???kX)??????Aꀤ~??_`???TM6????'?~??Q?KrQ??x??c=?%??????'q??????;??n$2D??{ဃr;??????e?;uL*??? q?? o$.?????Uv ?/?G?%*?J<????r ?|?8??=?Q}??(???????m??N<G? ?Z??OC%?k?????]?!v????^??O?.3?W??<'??_V e ?M??n& 7?{???????????L0??=?F8?M?C???L*w?7?z7V??,?B0Pf??????C???c&? I??EQ??+?Q_??? 9)?L8Rvm??!?<?y?5j??(~???????a ?0?>"G?c??&?:?@,?'?+M?Q?E?a??R,H?g?_?H??`??X"?_#? A???vgH9LXlL9????A?:+ ?:]? S?=?(?m;R???% ??I?t???XNm_??m/L?t??"??[G&?7?/?@?y??5?s??~?~5u????K?wO???b?M?i??q ?a\?~nH7?=?S </pdf-data> Kindly let me know if doesn't make sense. -- View this message in context: http://camel.465427.n5.nabble.com/XSLT-transformation-Base64binary-and-camel-xslt-tp5791061p5791161.html Sent from the Camel - Users mailing list archive at Nabble.com.