简体   繁体   中英

How to switch to xslt 2.0 from xslt 1.0

I am using MSXSL.exe utility to trigger my xslt code to transform the source XML file to destination xml file. I am not able to use a lot of built in functions which are available in XSLT 2.0.

Although I have changed the header, XSLT version 2.0, still i am not able to use the XSLT 2.0 functions. Is this because MSXSL.exe doesnt support XSLT 2.0?

Please let me know some suggestions so that i can use format date, string concatenation functions in my code

Although I have changed the header, XSLT version 2.0, still i am not able to use the XSLT 2.0 functions. Is this because MSXSL.exe doesnt support XSLT 2.0?

Yes.

Please let me know some suggestions so that i can use format date, string concatenation functions in my code

Please ask a specific question about each problem you encounter. There is no generic recipe to replace XSLT 2.0 functionality in XSLT 1.0. For example, to "format a date", you need to provide us with the source and target formats, and the solution will probably be specific to those two.

You need to use an XSLT 2.0 processor, on Windows which you seem to use if you mention msxsl you have some choice, the .NET version of Saxon 9 (which should work from the command line on Windows as the .NET framework is part of the OS in all supported Windows versions) or the Java version of Saxon 9 you could run if you install the Oracle Java JRE. There is also XmlPrime, a commercial implementation of XSLT 2.0, a pure .NET implementation.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM