如何在Microsoft Visual Studio 2010中使用xslt 2.0版 [英] How use xslt version 2.0 in Microsoft visual studio 2010

查看:91
本文介绍了如何在Microsoft Visual Studio 2010中使用xslt 2.0版的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照以下步骤在visual studio 2010中使用xslt版本2.0文件但无法获得结果。请帮助我有其他xsl编辑但需要使用visual studio 2010



备份现有文件

位置:C:\Program Files\Microsoft Visual Studio 10.0 \Xml \Schemas \ xslt.xsd

下载文件:http://www.w3.org/2007/schema-for-xslt20.xsd并保存它作为xslt.xsd进入上述位置

重启VS 2010

在项目中添加一个新的XSLT文件

在VS 2010内部,选择XML - >架构

禁用版本1.0架构。这是上面步骤1中的备份副本。

I have follow below procedure to use xslt version 2.0 file in visual studio 2010 but unable to get result. Please any help I have other xsl editor but required to use visual studio 2010

Backup your existing file
Location: C:\Program Files\Microsoft Visual Studio 10.0\Xml\Schemas\xslt.xsd
Download the file: http://www.w3.org/2007/schema-for-xslt20.xsdand save it as xslt.xsd into the above location
Restart VS 2010
Add a new XSLT file into your project
Inside VS 2010, select XML –> Schemas
Disable the version 1.0 schema. This was the backed up copy in step 1 above.

推荐答案

这不是简单地通过替换模式来完成的。 xslt transfomer引擎必须提供新功能。 AFAIK,它还没有/从不(?)支持MS工具。



来自为什么你不会在下一版本的.NET Framework中看到XSLT 2.0或XPath 2.0 [ ^ ]



It's not simply done by replacing the schema. The xslt transfomer engine must provide the new functions. AFAIK, it is not yet/never(?) supported by MS tools.

Some very old citation from Why You Won't See XSLT 2.0 or XPath 2.0 in the Next Version of the .NET Framework[^]

Quote:

我们没有实现XSLT 2.0和XPath 2.0有几个原因



实施所有3种技术(XQuery,XSLT 2.0和XPath 2.0)需要大量的精力和资源。我们的指导原则是,我们认为创建大量XML查询技术会让最终用户感到困惑。除了XPath 1.0和更高版本之外,我们宁愿实现一种我们推动人们学习的语言,而不是支持和解释三种XML查询和转换语言。 .NET Framework中已存在的XSLT 1.0。让我们的客户和支持人员必须处理3种复杂的XML查询语言的复杂性,其中两种看起来相似,但在XPath 2.0和XQuery的情况下表现得完全不同似乎对我们没那么有用。

There are several reasons why we aren't implementing XSLT 2.0 and XPath 2.0

It takes a lot of effort and resources to implement all 3 technologies (XQuery, XSLT 2.0 & XPath 2.0). Our guiding principle was that we believe creating a proliferation of XML query technologies is confusing to end users. We'd rather implement one more language that we push people to learn than have to support and explain three more XML query and transformation languages, in addition to XPath 1.0 & XSLT 1.0 which already exist in the .NET Framework. Having our customers and support people have to deal with the complexity of 3 sophisticated XML query languages two of which are look similar but behave quite differently in the case of XPath 2.0 and XQuery seemed to us not to be that beneficial.

< br $> b $ b

请参阅 XPath和XSLT 2.0 for .NET? [ ^ ]。第二个答案,最后评论:





See XPath and XSLT 2.0 for .NET?[^]. Second answer, last comment:

引用:

2013,没有变化





干杯

Andi



Cheers
Andi


.NET框架不支持XSLT 2.0。相反,微软现在正在考虑在.NET框架中支持XSLT 3.0。该工作项目目前正在审查中,主要取决于有多少人认为这很重要。如果你想要真正的实施,请在下面投票链接。



为.Net实现XSLT 3.0 - Visual Studio
XSLT 2.0 is not supported in .NET framework. Instead, Microsoft is now considering supporting XSLT 3.0 in .NET framework. The work item is currently under review and will largely base on how many people feel it’s important. Please vote link below if you want a true implementation.

Implement XSLT 3.0 for .Net – Visual Studio


这篇关于如何在Microsoft Visual Studio 2010中使用xslt 2.0版的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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