Xsl v.2 在 Visual Studio 2013 中不起作用 [英] Xsl v.2 won't work in Visual Studio 2013

查看:35
本文介绍了Xsl v.2 在 Visual Studio 2013 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 2013 中运行 Xls v.2 模板时出现以下异常(无调试模式):

I'm getting the following exception while running Xls v.2 template in Visual Studio 2013 (in no debug mode):

XslTransformException
---------------------
'for-each-group' is not a recognized extension element. An error occurred at blah.xslt(27,6).

是否可以在 VS2013 中使用 xsl 2?

Is it possible to use xsl 2 with VS2013 at all?

推荐答案

Microsoft 没有任何 XSLT 2.0 实现,它的所有 XSLT 处理器(COM 世界中的各种版本的 MSXML 以及 .NET 世界中的 XslTransform 和 XslCompiledTransform)是 XSLT 1.0 处理器.

Microsoft does not have any XSLT 2.0 implementation, all its XSLT processors (the various versions of MSXML in the COM world and XslTransform and XslCompiledTransform in the .NET world) are XSLT 1.0 processors.

如果您想使用 XSLT 2.0,那么您需要研究第三方解决方案,例如 Saxon 9、XmlPrime、AltovaXML/AltovaRaptor.您应该能够使用在 Visual Studio 中编写的代码(例如 C#、VB.NET、C++)运行它们,但是我不知道是否有人提供 Visual Studio 的扩展作为 IDE 以在 IDE 中运行 XSLT 2.0,根据到 http://www.altova.com/xmlspy/visual-studio-xml-editor.html XMLSpy 提供与 VS 的集成.

If you want to use XSLT 2.0 then you need to look into third party solutions like Saxon 9, XmlPrime, AltovaXML/AltovaRaptor. You should be able to run them with code (e.g. C#, VB.NET, C++) written in Visual Studio, I don't know however whether anyone provides an extension to Visual Studio as an IDE to run XSLT 2.0 inside the IDE, according to http://www.altova.com/xmlspy/visual-studio-xml-editor.html XMLSpy offers integration into VS.

不过,有各种 XML IDE,例如 oXygen、Stylus Studio、XML Spy,可让您运行和调试 XSLT 2.0.

There are however various XML IDEs like oXygen, Stylus Studio, XML Spy, that allow you to run and debug XSLT 2.0.

这篇关于Xsl v.2 在 Visual Studio 2013 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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