地图自定义 XSLT 中的 BizTalk 2010 路径验证
我们正在使用 BizTalk 2010 和 Visual Studio 2010 开发 EDI 应用程序。由于我们的复杂需求,我们广泛使用 BizTalk 映射器而不是映射器 GUI 提供的自定义 XSLT 功能。
虽然我发现实现我们需要的逻辑要容易得多,但在 XSLT 中进行开发很麻烦,因为 XSLT 文件中缺乏对路径的任何类型的验证。我们通过从架构中复制“Instance XPath”属性并将其更改为正确的格式来获取路径。我们有时会在这个过程中犯错误,并且不知道如何验证我们的路径是否正确。
我们是否缺少某些东西,或者是否有一个工具可以用来根据我们的输入模式验证 XSLT 文件中的路径?
We are developing a EDI application using BizTalk 2010 and Visual Studio 2010. Because of our complex requirements, we are making extensive use of the custom XSLT feature provided by the BizTalk mapper instead of the mapper GUI.
Although I find it much easier to implement the logic we need, developing in XSLT is cumbersome because of the lack of any sort of validation of the Paths in our XSLT files. We are getting our paths by copying the "Instance XPath" property out of the schema and altering them to be in the proper format. We sometimes make mistakes in this process and we don't know how to validate that our paths are correct.
Is there something we are missing or is there a tool that we can use to validate the Paths in our XSLT files against our input schema?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果没有实例,就无法验证您的 xpath(并测试您的地图)。
除了在 Visual Studio 中手动测试地图之外,您还可以使用 BizTalk 测试项目或 BizUnit 创建单元测试。
There is no way to validate you xpaths (and test your map) without an instance.
In addition to manually test your map inside Visual Studio, you can create Unit Tests using a BizTalk test project or BizUnit.