A lightweight editor for working with XSLT.
Supports XSLT 1.0, 2.0, and 3.0 with real-time compilation, tag autocompletion, and plugin support.
XSLT engines
- XSLT 1.0 via .NET engine
- XSLT 2.0 and 3.0 via Saxon-HE
The editor ships with built-in plugins. Copy out/plugins/{plugin-name}/ next to the editor executable.
| Plugin | Description |
|---|---|
| XML Formatter | Formats XML and XSL documents with indentation |
| XPath Validator | Validates XPath expressions against an XML document |
Plugins are built against the SDK in src/SDK/. Reference it as a project dependency, inherit PluginBase, and implement Execute.
using XsltEditor.Sdk;
using XsltEditor.Sdk.Abstractions;
using XsltEditor.Sdk.Extensions;
public class MyPlugin : PluginBase
{
public override string Name => "My Plugin";
public override string Description => "Does something useful";
public override void Execute(IDocumentContext context)
{
var xml = context.GetDocument(DocumentType.Xml);
var xsl = context.GetDocument(DocumentType.Xsl);
xml.Content = ProcessXml(xml.Content);
}
}Output goes to plugins/{plugin-name}/ next to the editor executable.
