This is a Visual Studio 2017 solution to build the msxsl.exe tool from source code.
The original code can be downloaded here: https://www.microsoft.com/en-us/download/details.aspx?id=21714).
Motivation : achive better performance by building a 64 bit version with a modern compiler for a modern platform/CPU.
Following changes were made:
- added MSXML6.0 support (will be used by default)
- removed/commented out MSXML4.0 (if someone needs this and knows how to do it, please enable it again)
- Rename some functions due to collisions with windows API function names
- Removed some deprecated/no more supported function calls
- Added total time calculation in ms (-t option)
- Adjusted messages.mc accordingly
A 13,4 MB XML file and a 15 KB XSL file have been used for performance measurement.
msxsl.exe test.xml test.xslt -t -o xx.html
Microsoft (R) XSLT Processor Version 4.0
Source document load time: 1188 milliseconds
Stylesheet document load time: 1.319 milliseconds
Stylesheet compile time: .866 milliseconds
Stylesheet execution time: 446.8 milliseconds
(Total time: 1637 ms)
msxsl_.exe test.xml test.xslt -t -o xx.html
Microsoft (R) XSLT Processor Version 6.0
Source document load time: 923.4 milliseconds
Stylesheet document load time: 1.017 milliseconds
Stylesheet compile time: .653 milliseconds
Stylesheet execution time: 362.3 milliseconds
Total time: 1287 milliseconds