xslt 1.4.0
See the version list below for details.
dotnet tool install --global xslt --version 1.4.0
dotnet new tool-manifest
dotnet tool install --local xslt --version 1.4.0
#tool dotnet:?package=xslt&version=1.4.0
nuke :add-package xslt --version 1.4.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 | Versions 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. |
This package has no dependencies.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.6.13 | 57 | 9/2/2026 |
| 1.6.12 | 62 | 8/30/2026 |
| 1.6.11 | 59 | 8/29/2026 |
| 1.6.10 | 68 | 8/27/2026 |
| 1.6.9 | 226 | 8/26/2026 |
| 1.6.8 | 59 | 8/26/2026 |
| 1.6.7 | 68 | 8/24/2026 |
| 1.6.6 | 73 | 8/23/2026 |
| 1.6.5 | 65 | 8/22/2026 |
| 1.6.4 | 91 | 8/16/2026 |
| 1.6.3 | 71 | 8/14/2026 |
| 1.6.2 | 69 | 8/13/2026 |
| 1.6.1 | 76 | 8/4/2026 |
| 1.6.0 | 79 | 7/31/2026 |
| 1.5.0 | 82 | 7/27/2026 |
| 1.4.25 | 83 | 7/17/2026 |
| 1.4.24 | 78 | 7/14/2026 |
| 1.4.23 | 97 | 7/12/2026 |
| 1.4.22 | 85 | 7/10/2026 |
| 1.4.0 | 85 | 6/1/2026 |
W3C XSLT 3.0 streaming conformance lifted from 71.3% to 80.5% (1681 to 1898 tests passing) across 24 commits. 11 new streaming test sets reach 100%: si-element, si-LRE, si-value-of, si-copy, si-document, sf-copy-of, sf-fold-right, sf-zero-or-one, sf-innermost, and all six sx-GeneralComp variants.
New streaming for-each support inside xsl:source-document: absolute and relative-from-root paths, mixed sequences (literals + path), text() KindTest tail, attribute-axis tail with attribute as context item, last-step predicates, fn:data() unwrap. Conditional wrappers (xsl:on-empty / xsl:on-non-empty / xsl:where-populated) correctly suppress subscription dispatch.
New streaming watcher recognitions: xsl:element/@name AVT consuming expressions, SimpleMapExpression(path, per-item-atomic-casts), descendant axis with nested same-name elements, snapshot(streamable-path)//tail, positional [1] head predicate, NamedFunctionRef and InlineFunctionExpression arguments for higher-order functions, motionless last-step predicates on aggregation watchers.
Engine fixes: XdmElement._stringValue populated by xsl:variable as=element() path (value-of of variable-constructed elements no longer empty); xsl:copy/@select raises XTTE3180 on multi-item selection; streaming subtree materializer precomputes string-value bottom-up.
Bumps PhoenixmlDb.XQuery dependency to 1.4.1 (QT3 production sweep fixes: EQName parser, deep-equal collation, format-number isolation, module copy-namespaces scoping, XPTY0004 for incompatible-type comparisons, function(*) matches map/array, plus more).
See RELEASES.md for full notes.