Biztalk 中缺少值时如何不映射元素?
如果值丢失或者是空字符串,我不想在输出文档中写出元素属性。 怎么做呢? 这是在biztalk 地图中。
I don't want to in the output document to write out the element attribute if the value is missing or is an empty string.
How to do that?
That's in a biztalk mapping.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
要抑制目标中的元素,请使用值映射 functoid。
LOGICAL EXISTENCE
functoid。LOGICAL EXISTENCE
functoid 连接到LOGICAL AND
functoid。NOT EQUALS
functoid 中,将 Condition2 设置为 BLANK。NOT EQUALS
functoid 连接到LOGICAL AND
functoid。LOGICAL AND
functoid 连接到VALUE MAP
functoid。VALUE MAP
functoid。VALUE MAP
functoid 连接到目标元素。按顺序执行这些步骤。下面的屏幕截图应该有所帮助:
HTH
To suppress an element in the destination, use a value mapping functoid.
LOGICAL EXISTENCE
functoid.LOGICAL EXISTENCE
functoid to aLOGICAL AND
functoid.NOT EQUALS
functoid.NOT EQUALS
functoid, set the Condition2 to BLANK.NOT EQUALS
functoid to theLOGICAL AND
functoid.LOGICAL AND
functoid to theVALUE MAP
functoid.VALUE MAP
functoid.VALUE MAP
functoid to the destination element.Do these steps in order. The screen shot below should help:
HTH
如果您更喜欢自己执行 XSLT:
(我正在检查是否缺少元素、空值和
xsi:nil
- 如果不适用,则相应删除)If you prefer doing the XSLT yourself:
(I'm checking for missing element, empty value, and
xsi:nil
- delete accordingly if not applicable)