This is a base project for XSLT transformations in Visual Studio Code.
- Visual Studio Code
- Java 1.8 or later
- Direct download - OpenJDK 11U - JDK x64 MSI
- Saxon-HE (Java)
- Direct download - Saxon HE10 6J ZIP
- XSLT/XPath for Visual Studio Code
- Install Visual Studio Code
- Add XSLT/XPath for Visual Studio Code extenstion
- Follow the Windows MSI-installer
- Unzip the Saxon HE file
- Move the files to a fitting location
- C:\Program Files\Saxon\
- Open Visual Studio Code Settings -> search "@ext:deltaxml.xslt-xpath"
- Update the Saxon HE Jar (Path of the installed Saxon jar file)
- i.e. C:\Program Files\Saxon\saxon-he-10.6.jar
This file contains the settings for the
(Shortcut cmd + shift + b / ctrl + shift + b)
- Open XSLT file you want use
- Open tasks
- (cmd + P / ctrl + P) - To open command palette
- Select: "Tasks - Run task"
- Run task: "xslt: Saxon Transform (New)"
You will be prompted to input the filename you want to run. Default set to "testfiles/original.xml"
You can customize the default filename and location by changing the inputs.default in .vscode/tasks.json