简体   繁体   中英

Not getting value in xslt transformer mule esb

I facing issue while using xslt transformer.. As input i got response in xml from microsoft connector..And i convert into another form of xml using xslt transformer. But problem is i didn't get values from particular node..

Below is my flow..Whats wrong with this flow

 <flow name="flow1">
        <http:listener config-ref="HTTP_Listener_Configuration" path="/" doc:name="HTTP"/>
        <component class="org.com.test" doc:name="Java"/>
        <dynamicsax:invoke-document-service-operation config-ref="Microsoft" serviceAndSoapActionUri="XXXXX" doc:name="Microsoft"/>
        <mulexml:dom-to-xml-transformer mimeType="application/xml" doc:name="DOM to XML"/>
        <mulexml:xslt-transformer mimeType="application/xml" xsl-file="src/main/resources/demo.xslt" maxIdleTransformers="2" maxActiveTransformers="5" doc:name="XSLT"/>
        <logger message="--&gt; #[payload]" level="INFO" doc:name="Logger"/>
        <file:outbound-endpoint path="PurchaseOrder" outputPattern="test.xml" responseTimeout="10000" doc:name="File"/>

    </flow>

Output

<?xml version="1.0" encoding="UTF-8"?>
<type>
   <id />
   <name />
</type>

I didn't get value ..

If i use File as source then i got successful output.. If i used below flow then it run

<flow name="flow2">
        <file:inbound-endpoint path="Input" moveToDirectory="Backup" responseTimeout="10000" doc:name="File"/>
        <mulexml:xslt-transformer xsl-file="src/main/resources/demo.xslt" maxIdleTransformers="2" maxActiveTransformers="5" doc:name="XSLT"/>
        <file:outbound-endpoint path="Output" outputPattern="test.xml" responseTimeout="10000" doc:name="File"/>
    </flow>

Output

<?xml version="1.0" encoding="UTF-8"?>
<type>
   <id>1</id>
   <name>test</name>
</type>

What's wrong with 1st flow..please help to solve this..I need 1st flow to be executed..

确保您的dom-to-xml转换器将预期数据作为xslt返回。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM