使用xslt文件进行转换时,不应创建任何输出文件 [英] Should not create any output file when transform with xslt file

查看:83
本文介绍了使用xslt文件进行转换时,不应创建任何输出文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个xslt文件,我已经创建了代码来检查订单状态值。

I have a xslt file, which I have make code to check the order status value.

如果订单来自!拒绝' - '> create attribute,输出文件的元素

If OrderStatus != 'Reject' --> create attribute, element for output file

Else OrderStatus ='Reject' - >不要创建属性/元素==>输出是空文件。

Else OrderStatus = 'Reject' --> do not create attribute/element ==> output is the empty file.

要求:如果OrderStatus ='拒绝' - >不要创建任何输出文件。

Requirement: if OrderStatus = 'Reject' --> do not create any output file.

如何处理此要求?

任何帮助将不胜感激!

any help will be appreciated!

推荐答案

BizTalk或你的xlst无法输出空文件。

BizTalk or your xlst just cannot output empty files.

您最好提升OderStatus字段,并在发送端口级别将过滤器设置为Orderstatus不等于Reject。这意味着您希望仅在OrderStatus未被拒绝时执行地图。

you better promote the OderStatus field and at send port level set the filter as Orderstatus not equal to Reject. Which mean you want the map to execute only when the OrderStatus is not rejected.

或者,如果您正在使用任何业务流程,那么您可以将OrderStatus字段设为Distinguished,然后在业务流程中读取它并且仅当它不等于"拒绝"时执行地图

Alternatively if you are using any orchestrations then you can just make the field OrderStatus as Distinguished and then read it in orchestration and execute the map only if it is not equal to "Reject"




你无法创建空文件。我假设空文件你不想发出任何输出(而不是只是空文件)。 BizTalk只是无法发送空文件。

you just cannot create empty file. I assume empty file in the sence you don't want to send out any output(instead of just empty file). BizTalk just cannot send empty files out.


这篇关于使用xslt文件进行转换时,不应创建任何输出文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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