xslt 2.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet tool install --global xslt --version 2.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest
                    
if you are setting up this repo
dotnet tool install --local xslt --version 2.0.0
                    
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=xslt&version=2.0.0
                    
nuke :add-package xslt --version 2.0.0
                    

xslt

Command-line XSLT 3.0/4.0 processor for .NET. Transform XML documents from the terminal using the PhoenixmlDb XSLT engine.

Installation

dotnet tool install -g xslt

Usage

# Transform XML with a stylesheet
xslt stylesheet.xsl input.xml

# Write output to a file
xslt -o result.html report.xsl data.xml

# Start from a named template (no source needed)
xslt -it main generate.xsl

# Pass parameters
xslt -p year=2026 -p title="Report" style.xsl data.xml

# Read source from stdin
cat data.xml | xslt transform.xsl

# Show timing breakdown
xslt --timing style.xsl large-input.xml

# Validate a stylesheet without running
xslt --dry-run style.xsl

# Stream large files (lower memory)
xslt --stream style.xsl large-input.xml

Features

  • XSLT 3.0/4.0 — packages, streaming, maps/arrays, higher-order functions, JSON output
  • Multiple output methods — XML, HTML, XHTML, text, JSON, adaptive
  • Streaming — process large files without loading into memory
  • xsl:result-document — generate multiple output files in one transform
  • Parameters — pass values from the command line
  • Timing — built-in performance profiling
  • Tracing — log template matching, function calls, and built-in rules

Documentation

Full documentation at phoenixml.dev

License

Apache-2.0

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

Version Downloads Last Updated
2.1.0 12 9/17/2026
2.0.0 51 9/15/2026
1.8.0 52 9/14/2026
1.7.0 60 9/11/2026
1.6.15 66 9/9/2026
1.6.14 76 9/7/2026
1.6.13 86 9/2/2026
1.6.12 84 8/30/2026
1.6.11 73 8/29/2026
1.6.10 80 8/27/2026
1.6.9 249 8/26/2026
1.6.8 72 8/26/2026
1.6.7 82 8/24/2026
1.6.6 86 8/23/2026
1.6.5 74 8/22/2026
1.6.4 103 8/16/2026
1.6.3 82 8/14/2026
1.6.2 77 8/13/2026
1.6.1 84 8/4/2026
1.6.0 82 7/31/2026
Loading failed

**Major because the train is.** `PhoenixmlDb.Core`, `PhoenixmlDb.XQuery` and `PhoenixmlDb.Xslt`
move to 2.0.0 together for the namespace consolidation. The XSLT engine's own surface is
compatible with 1.8.0 — **what breaks is reaching the extension functions**, and that breaks in
the XQuery layer this engine embeds.

Takes **PhoenixmlDb.XQuery 2.0.0** and **PhoenixmlDb.Core 2.0.0**.

### Breaking — the extension functions moved

A stylesheet reaching the engine's extension functions must now declare:

```xml
xmlns:phx="https://schemas.phoenixml.dev/2026/functions"
```

and call `phx:metadata`, `phx:stem`, `phx:tokenize`, `phx:score`, `phx:is-stop-word` and
`phx:thesaurus-lookup`. The old `ft:` and `dbxml:` namespaces are retired with no aliases, so a
stylesheet using them fails rather than behaving differently. See `PhoenixmlDb.XQuery` 2.0.0 for
the full rename table and the two non-obvious breaks (a host can no longer rebind `phx`, and
metadata providers now receive `Q{uri}local` rather than a prefixed key).

### Fixed

- **`fn:serialize` no longer needs an XSLT-side override.** The override existed because
 `fn:serialize` resolved namespace URIs only for one store type and emitted `xmlns:p=""` for
 everything else — output that would not reparse. XQuery 2.0.0 carries the store-aware
 serializers, so the override is retired rather than maintained in two places.
- **Four defects found by compiling the NEMSIS schematrons**, from the Schematron session.