Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
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.
Posted
Updated 27-May-16 8:06am

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:
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.


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

Quote:
2013, no changes


Cheers
Andi
 
Share this answer
 
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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900