A VSCode extension for XPath 3.1, XSLT 3.0 and more.
- XSLT 3.0 and XPath 3.1 Syntax highlighting
- XSLT 3.0 and XPath 3.1 Formatting
- XSLT Outline View
- XSLT/XPath Symbol-lookup
- XML Well-Formedness Checking
- XSLT Static Code Checking (wip)
- XPath Static Code Checking (wip)
- Mark unused variables
- Close-tag auto-completion with tag-name
- Show invalid variable/param references as errors
- Saxon XSLT Transform Task Provider (requires Java)
See: XPath Embedded Wiki
- On Windows -
Shift + Alt + F
. - On Mac -
Shift + Option + F
. - On Ubuntu -
Ctrl + Shift + I
.
Syntax highlighting is currently only enabled in built-in themes. This is because the 'Semantic Highlighting' used by XPath Embedded does not work well with some languages and some themes.
To enable syntax highighting for a custom theme you need to change User Settings. For example, to enable syntax highlighting for XSLT in the City Lights theme use:
{
"editor.semanticTokenColorCustomizations":{
"[Monokai +Blue]": {"enabled": true}
},
}
Or, to enable syntax highlighting for all themes:
{
"editor.semanticTokenColorCustomizations":{
"enabled": true
},
}
{
"[xslt]": {
"editor.defaultFormatter": "deltaxml.xpath-embedded",
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.formatOnType": true
}
}