Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 2.03 KB

File metadata and controls

63 lines (41 loc) · 2.03 KB

XSLT Editor

.NET Version Build Status Latest Release

A lightweight editor for working with XSLT.

About

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

Download Latest

Editor Interface Preview


Plugins

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

SDK

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.


MIT License · Report an Issue