【问题标题】:Mule: xml-stylesheet tag in DataweaveMule:Dataweave 中的 xml-stylesheet 标签
【发布时间】:2018-02-22 09:44:23
【问题描述】:

我应该将一个文档映射到 Dataweave 中必须包含的 xml

<?xml-stylesheet type="text/xsl" href="audit_stylesheet.xsl" ?>

在Dataweave 制作的&lt;?xml version='1.0' encoding='ISO-8859-15'?&gt; 标记之后。

我无法在 dataweave 中实现这一点,因为 ?在标签中,尤其是结尾的“?>”。

有没有人有一个解决方案,我如何在一次 Dataweave 转换中最终实现这一目标:

<?xml version='1.0' encoding='ISO-8859-15'?>
<?xml-stylesheet type="text/xsl" href="test.xsl" ?>
...

(我的最终解决方案是一些字符串操作 - 但我很想避免这种情况。)

谢谢!

【问题讨论】:

    标签: xml mule dataweave


    【解决方案1】:

    DataWeave 不支持此功能。如果您真的必须以这种方式关联 XLS 样式表,则必须使用字符串替换来完成。我同意它不漂亮。我想知道现在有多少客户需要这个功能。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-11-21
      • 2017-05-20
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-21
      • 2013-08-29
      • 1970-01-01
      相关资源
      最近更新 更多