What's New
Highlights of the features added in releases 2.0 and 2.1:
Release 2.1
- Step-through debugging - debug stylesheets with SaxonJ (any edition, including Saxon-HE): breakpoints with conditions, hit counts and logpoints, stepping through templates, functions and multi-line XPath expressions - including inline functions - and the variables, context item and output so far, as you go
- XSpec tests - run and debug XSpec tests from the Test Explorer, for stylesheets and Schematron, with each failure's expected and actual results side by side, and breakpoints in the stylesheet or the XSpec file. XSpec files are checked as you edit them, against XSpec's schema and the stylesheet they test, with auto-completion, hover help and navigation between the tests and the stylesheet. XSpec 4.1.2 is included
- XSLT packages - Workspace packages are automatically
discovered from their
xsl:packagename and version and supplied to Saxon when running or debugging stylesheets. Component visibility,xsl:expose, andxsl:acceptare handled exactly as Saxon does. Issues withxsl:accept,xsl:override, and package modes are flagged while you edit, with quick fixes available. - Find Nodes with XPath - run XPath expressions on an XML file from a query file below it, with the XPath editor's checks and auto-completion: the nodes found are listed to step through, and values are shown after each expression. Replaces Goto XPath
- MCP server for AI assistants (experimental) - tools an assistant such as Claude Code or GitHub Copilot can call to check stylesheets that aren't open, find declarations and references, show a module's imports, and describe item types and built-in functions
- Tracing values with xdm:trace() -
trace a value anywhere within an XPath expression: like
trace(), it returns the value unchanged, but writes it formatted asxdm:debug()does. Wrap with xdm:trace() adds it around a selected expression, and Remove xdm:trace() - keep the expression removes the call and its other arguments, leaving just the expression - Converting a library to a package - Analyse as Package... reports what would have to change for a library that stylesheets import to become a package, and Convert to Package... makes the changes across the workspace - the library's visibility, the stylesheets' overrides, even a shared unnamed mode - shown in the Refactor Preview before they're made
Release 2.0
- Full language support for XSLT 4.0 in Saxon 13 - type-aware
auto-completion, checks, hover help and refactoring for the XSLT 4.0 and XPath 4.0 features Saxon 13
implements: new syntax and item types, keyword arguments and optional parameters,
xsl:switch, and documentation notes withxsl:note - Code Documentation -
documentation within
xsl:noteelements provides hover assistance using tags based on xqdoc along with Markdown descriptions. In an XSLT 3.0 stylesheet,xsl:noteneeds Saxon PE/EE 12.8 or later and theXSLT.validation.xslt30ItemTypesAndNotessetting. - Records and Enums - auto-completion, checks, hover
help and refactoring for XPath 4.0 record and enumeration types, from map constructors to
xsl:switchcases - JSON and JNodes - XPath 4.0 path expressions
on JSON, with auto-completion, checks and hover help for steps on JNodes with a record type, and
JNode paths shown by
xdm:debug() - Quick Run - run the active stylesheet with a shortcut or the toolbar button, without configuring a task first - with SaxonJ, SaxonJS or the new SaxonC support
- Inferred imports - the top-level stylesheet of a module is found from the workspace, without opening it first, and the new XSLT Imports view shows its tree of imports and includes
- XML Catalogs - resolve the
hrefofxsl:importandxsl:include, e.g. thehttp:URI of a shared library, to a local file with an OASIS XML catalog - also passed to Saxon when a stylesheet is run - Editing - signature help and richer hover help for functions and templates, more auto-completion, and the new Wrap with... refactoring
- Print debugging - one auto-completed
xsl:messagefor all the in-scope variables, formatted and colored withxdm:debug()