我正在 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”。
此处提出了类似的问题。但是答案解决了具体的代码问题,而不是告诉人们如何找到错误。