Mule ESB DataMapper可以生成XSLT [英] Can the Mule ESB DataMapper generate XSLT

查看:106
本文介绍了Mule ESB DataMapper可以生成XSLT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

给定一个DataMapper节点,它将映射到以下两个结构之间:



Strcuture A:

 <项目> 
< 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>

结构B:

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

Mule ESB DataMapper将生成一个CTL2(Clover)转换。



Mule ESB DataMapper是否也可以生成XSLT

解决方案

您是否要执行XML转换?因为如果是这种情况,那么是的。



如果你的意思是生成XSLT,技术上我可以,但没有意义,因为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

解决方案

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.

这篇关于Mule ESB DataMapper可以生成XSLT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆