【发布时间】:2020-06-21 21:30:56
【问题描述】:
我正在 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”。
类似的问题是asked here。但是答案解决了具体的代码问题,而不是告诉人们如何找到错误。
【问题讨论】:
-
能否在 Visual Studio 中打开 XSLT,并使用 XML 菜单选择 Run XSLT with debugging?
-
docs.microsoft.com/en-gb/biztalk/core/technical-reference/… 处的 MS 接口文档没有明确说明在
Load调用或Transform调用期间错误会发生什么,因此不清楚 Saxon 是否或如何报告任何错误在样式表编译或执行期间传播或报告。如果您从命令行使用Transform.exe运行.NET 版本的Saxon 9,它将向控制台的错误流saxonica.com/html/documentation9.8/using-xsl/commandline 报告错误。 -
@Dijkgraaf - 起初这确实让我看到了我的第一个错误。但显然我还有其他无法识别的错误。在我修复了第一个并尝试逐步浏览我的地图后,单击 F10 或 F11 似乎正在开始部署,但失败了。所以这似乎完全是另一个问题。 Martin 我今晚可能会试试 Saxonica 命令行。我希望这不是必需的,Visual Studio 会处理所有事情。
-
@MartinHonnen - 我能够使用 Saxonica 命令行找到错误 - 一旦我安装了它 (stackoverflow.com/questions/60627181/…)。我认为如果 Microsoft 没有捕获这些错误并在输出窗口中显示它们,这是一个错误。
-
张贴在 MSDN 论坛上,看看他们是否会承认这是一个错误并可能在未来的更新中修复。 social.msdn.microsoft.com/Forums/en-US/…
标签: biztalk xslt-3.0 biztalk-2020