Search code examples
dictionarymuleesb

Can the Mule ESB DataMapper generate XSLT


Given a DataMapper node that would map between the following two structures:

Strcuture A:

<item>
  <id>123</id>
  <price>1</price>
  <quantity>1</quantity>
</item>
<item>
  <id>124</id>
  <price>2</price>
  <quantity>1</quantity>
</item>
<item>
  <id>125</id>
  <price>3</price>
  <quantity>1</quantity>
</item>

Structure B:

<total>
  <totalPrice>6</totalPrice>
</total>

The Mule ESB DataMapper will generate a CTL2 (Clover) Transformation.

Can the Mule ESB DataMapper also generate XSLT


Solution

  • Do you mean to perform a XML transformation? Because if this is the case then yes.

    If what you mean is to generate XSLT, technically I can, but makes no sense as XSLT is not meant to contain information but rather to transform it.