Thank you guys. Asanka A. Asankha C. Perera wrote:
AsankaLooks like the output of the XSL transformation is not well formed. Can you send the XSL stylesheet?YesThe XSL transformation output looks like some plain text beginning with character "F".. Can you run the XSL transformation out of the ESB on the command line to verify this? I use a simple shell script with the content, and the attached SimpleTransform.java:org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character 'F' (code 70) in prolog; expected '<'at [row,col {unknown-source}]: [1,39]"java -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl -cp /home/asankha/bin/xalan-j_2_7_0/samples/SimpleTransform SimpleTransform $1 $2 $3"asankha -- Asankha C. Perera WSO2 - http://wso2.org http://esbmagic.blogspot.com
<?xml version='1.0' encoding='utf-8'?> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <message inSession="FIX.4.0:SYNAPSE->BANZAI" counter="1"> <header> <field id="8"><![CDATA[FIX.4.0]]></field> <field id="9"><![CDATA[104]]></field> <field id="34"><![CDATA[2]]></field> <field id="35"><![CDATA[D]]></field> <field id="49"><![CDATA[BANZAI]]></field> <field id="52"><![CDATA[20080616-12:13:14]]></field> <field id="56"><![CDATA[SYNAPSE]]></field> </header> <body> <field id="11"><![CDATA[1213618394140]]></field> <field id="21"><![CDATA[1]]></field> <field id="38"><![CDATA[100]]></field> <field id="40"><![CDATA[1]]></field> <field id="54"><![CDATA[1]]></field> <field id="55"><![CDATA[SUNW]]></field> <field id="59"><![CDATA[0]]></field> </body> <trailer> <field id="10"><![CDATA[226]]></field> </trailer> </message> </soapenv:Body> </soapenv:Envelope>
<m:placeOrder xmlns:m="http://services.samples/xsd" xmlns:fn="http://www.w3.org/2005/02/xpath-functions"> <m:order> <m:price>10.00</m:price> <m:quantity>1000</m:quantity> <m:symbol>SUNW</m:symbol> <m:side>buy</m:side> </m:order> </m:placeOrder>
fixtransform.xslt
Description: XML document
