ie,

You cannot use two <eip:transformer>s in a single <eip:pipeline>. You should define two separate pipeline, each with one transformer and put both of them in your route. You might also want to take a look at the Camel component, which allows you to more easily (using a Java DSL or Spring XML) define these type of EIP-based integrations.

Regards,

Gert

nja wrote:
Hi,
        I have an input xml and this inputxml needs to pass through multiple
xslt's.I am using Saxon ,but I am getting error.I am defining the xbeans
below.

<beans xmlns:saxon="http://servicemix.apache.org/saxon/1.0";
       xmlns:b="http://servicemix.apache.org/samples/bridge";>

  <saxon:xslt service="b:xslt" endpoint="endpoint"
              result="string"
              resource="classpath:bridge.xslt" />
  <saxon:xslt service="b:xslt1" endpoint="endpoint"
                result="string"
              resource="classpath:bridge1.xslt" />
  <!-- saxon is bugged when dealing with xmlns="xxx" attributes
       see
http://sourceforge.net/tracker/index.php?func=detail&aid=1558133&group_id=29872&atid=397617
       so just use string instead of DOM output for now -->

</beans>



I am using pipeline to call this xslt's
ie.

<beans xmlns:eip="http://servicemix.apache.org/eip/1.0";
       xmlns:b="http://servicemix.apache.org/samples/bridge";>

  <eip:pipeline service="b:pipeline" endpoint="endpoint">
    <eip:transformer>
      <eip:exchange-target service="b:xslt" />
    </eip:transformer>
    <eip:transformer>
          <eip:exchange-target service="b:xslt1" />
    </eip:transformer>
    <eip:target>
      <eip:exchange-target service="b:jms" />
    </eip:target>
  </eip:pipeline>

</beans>


I am using bridge.output of Jconsole to view the output.When i use only one
transformation it works fine.But when two transformations are used,the
output xml is displayed with null values.....Can anyone help me on this?

ie.

Reply via email to