PhoenixmlDb.Xslt
1.7.0
See the version list below for details.
dotnet add package PhoenixmlDb.Xslt --version 1.7.0
NuGet\Install-Package PhoenixmlDb.Xslt -Version 1.7.0
<PackageReference Include="PhoenixmlDb.Xslt" Version="1.7.0" />
<PackageVersion Include="PhoenixmlDb.Xslt" Version="1.7.0" />
<PackageReference Include="PhoenixmlDb.Xslt" />
paket add PhoenixmlDb.Xslt --version 1.7.0
#r "nuget: PhoenixmlDb.Xslt, 1.7.0"
#:package PhoenixmlDb.Xslt@1.7.0
#addin nuget:?package=PhoenixmlDb.Xslt&version=1.7.0
#tool nuget:?package=PhoenixmlDb.Xslt&version=1.7.0
PhoenixmlDb.Xslt
XSLT 4.0 transformation engine for PhoenixmlDb — transform XML documents into HTML, JSON, CSV, text, or other XML formats.
Features
- XSLT 3.0/4.0 — template matching, streaming, accumulators, packages, maps/arrays
- All output methods — HTML5, XML, XHTML, JSON, text, CSV, adaptive
- Multiple outputs —
xsl:result-documentfor multi-file generation - Full XPath 4.0 — 240+ built-in functions available in all expressions
- Packages — reusable stylesheet libraries with visibility control
Quick example
using PhoenixmlDb.Xslt;
var transformer = new XsltTransformer();
await transformer.LoadStylesheetAsync(
File.ReadAllText("style.xsl"),
new Uri(Path.GetFullPath("style.xsl")));
transformer.SetParameter("title", "My Report");
var html = await transformer.TransformAsync(
File.ReadAllText("data.xml"));
// Handle secondary outputs (xsl:result-document)
foreach (var (href, content) in transformer.SecondaryResultDocuments)
File.WriteAllText(Path.Combine(outputDir, href), content);
See the full API overview in the README.
Related packages
| Package | Description |
|---|---|
| PhoenixmlDb.Core | Core types and XDM data model (dependency) |
| PhoenixmlDb.XQuery | XQuery 4.0 query engine (dependency) |
| PhoenixmlDb.Xslt.Cli | xslt command-line tool |
Documentation
Full documentation at phoenixml.dev
License
Apache 2.0
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. 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. |
-
net10.0
- PhoenixmlDb.Core (>= 1.7.0)
- PhoenixmlDb.XQuery (>= 1.7.0)
-
net8.0
- PhoenixmlDb.Core (>= 1.7.0)
- PhoenixmlDb.XQuery (>= 1.7.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.1.0 | 12 | 9/17/2026 |
| 2.0.0 | 116 | 9/15/2026 |
| 1.8.0 | 198 | 9/14/2026 |
| 1.7.0 | 95 | 9/11/2026 |
| 1.6.15 | 169 | 9/9/2026 |
| 1.6.14 | 118 | 9/7/2026 |
| 1.6.13 | 159 | 9/2/2026 |
| 1.6.12 | 122 | 8/30/2026 |
| 1.6.11 | 108 | 8/29/2026 |
| 1.6.10 | 175 | 8/27/2026 |
| 1.6.9 | 105 | 8/26/2026 |
| 1.6.8 | 103 | 8/26/2026 |
| 1.6.7 | 108 | 8/24/2026 |
| 1.6.6 | 113 | 8/23/2026 |
| 1.6.5 | 131 | 8/22/2026 |
| 1.6.4 | 133 | 8/16/2026 |
| 1.6.3 | 104 | 8/14/2026 |
| 1.6.2 | 104 | 8/13/2026 |
| 1.6.1 | 125 | 8/4/2026 |
| 1.6.0 | 123 | 7/31/2026 |
Takes PhoenixmlDb.XQuery 1.7.0 and PhoenixmlDb.Core 1.7.0.
### Fixed — xsl:try
Three independent causes that happened to land in one test set:
- **`$err:module` and `$err:line-number` were empty for runtime-raised errors.** A catch block
interrogating the error variables saw blanks.
- **`xsl:try` ran its body in the CALLER's scope.** A variable declared inside the body wrote
into the same scope as an identically-named outer binding and clobbered it, so `xsl:catch`
read the body's value rather than the outer one.
- **A global variable's error was catchable.** Globals are evaluated outside any `xsl:try`, so
the error must stay uncatchable however late the deferred rethrow lands.
### Fixed — other
- **`xsl:analyze-string` discarded `flags="s"`.** The flag was parsed and mapped correctly, then
thrown away by a pattern rewrite that baked `[^\r\n]` into the regex, leaving
`RegexOptions.Singleline` nothing to act on.
- **A copied element's text was pulled out of it during serialization**, so it came back
correctly named, correctly counted, and empty. Reached further than expected: five sets gained.
- **A parentless constructed comment reported the stylesheet's base URI** where XDM requires the
empty sequence.
### Conformance — 10,082/10,630 (94.8%)
Measured 2026-09-10 against `w3c/xslt30-test` @ `fddf1cf`, in a **Release** build.
**This is higher than the 94.4% published on 2026-09-05 and the engine did not improve that
much.** The previous figure came from a Debug build, which lost 38 cases across 21 sets purely to
the harness's 10s per-case timeout — 43 timeouts against Release's 5. Release is what ships, so a
figure from a Debug build was not a claim about the product. `scripts/conformance.sh` now defaults
to Release. See `BUGS.md` #43.
### Release discipline
`publish` is now gated on the test job. Until today this repository could push a tagged release
to nuget.org with a red suite.
16 versions shipped in the 1.6.x line, several carrying defects found only later. See
`docs/RELEASE-HYGIENE.md` for the unlisting plan and the controls that should stop a repeat.
### Known, not fixed
- `map:put`/`map:remove` are O(n) copies, making incremental map building quadratic —
phoenixmldb-xquery#6. Present in 1.6.x too.
- No current XQuery/QT3 conformance figure is published. The harness now runs per-set, but its
results depend on execution order (shared fixture state), so no honest number exists yet —
`BUGS.md` #44.