1

我正在 BizTalk 2020 中尝试我的第一个 XSLT 3.0,并在 Visual Studio 2019 中进行“测试地图”。以下是来自输出窗口的内容:

    Invoking component...
    C:\Users\Administrator\source\repos\SchemaLesson\MapXSLTDemos\Map_FlightReservation_to_FlightData_3.0.btm: 
The compilation is using the CustomXslt and CustomExtensionXml tags to generate the output.  The map content is ignored.

    TestMap used the following file: 
<file:///C:\Users\Administrator\AppData\Local\Temp\inputfile.xml> as input to the map.
    C:\Users\Administrator\source\repos\SchemaLesson\MapXSLTDemos\Map_FlightReservation_to_FlightData_3.0.btm: 
error btm1050: XSL transform error: Unable to write output instance to the following <file:///C:\Users\Administrator\AppData\Local\Temp\_MapData\MapXSLTDemos\Map_FlightReservation_to_FlightData_3.0_output.xml>. 
Errors were reported during stylesheet compilation
    Test Map failure for map file <file:///C:\Users\Administrator\source\repos\SchemaLesson\MapXSLTDemos\Map_FlightReservation_to_FlightData_3.0.btm>. 
The output is stored in the following file: <file:///C:\Users\Administrator\AppData\Local\Temp\_MapData\MapXSLTDemos\Map_FlightReservation_to_FlightData_3.0_output.xml> 
    Component invocation succeeded.

对我来说,问题是存在错误[正如它所说的“在样式表编译期间报告了错误”],但它们没有显示在输出窗口中。它们是否在输出窗口中未列出的某个神秘文件上写入磁盘?我不是要解决我的具体错误,所以我没有发布代码。我想知道如何查看“报告”的错误。

从自定义网格中,我转到属性窗口并将“XSLT 转换引擎”设置为“Saxon 9 HE”。

在此处输入图像描述

此处提出了类似的问题。但是答案解决了具体的代码问题,而不是告诉人们如何找到错误。

4

1 回答 1

1

您需要阅读这篇文章: 创建自定义 XSLT 转换

  1. c:\Program Files (x86)\Microsoft BizTalk Server\Developer Tools\CustomTransform.xml
  2. 复制的值TypeAssemblyQualifiedName
  3. 打开 regedit.exe 并在以下注册表中创建字符串值“XsltEngine”:
  • 64 位主机实例:HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\BizTalk Server\3.0\Configuration
  • 32 位主机实例:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\BizTalk Server\3.0\Configuration
  1. 将 的值粘贴TypeAssemblyQualifiedName为值
  2. 重启你的服务器
于 2020-10-29T15:30:38.983 回答