PhoenixmlDb.Xslt
1.6.7
dotnet add package PhoenixmlDb.Xslt --version 1.6.7
NuGet\Install-Package PhoenixmlDb.Xslt -Version 1.6.7
<PackageReference Include="PhoenixmlDb.Xslt" Version="1.6.7" />
<PackageVersion Include="PhoenixmlDb.Xslt" Version="1.6.7" />
<PackageReference Include="PhoenixmlDb.Xslt" />
paket add PhoenixmlDb.Xslt --version 1.6.7
#r "nuget: PhoenixmlDb.Xslt, 1.6.7"
#:package PhoenixmlDb.Xslt@1.6.7
#addin nuget:?package=PhoenixmlDb.Xslt&version=1.6.7
#tool nuget:?package=PhoenixmlDb.Xslt&version=1.6.7
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.6.7)
- PhoenixmlDb.XQuery (>= 1.6.7)
-
net8.0
- PhoenixmlDb.Core (>= 1.6.7)
- PhoenixmlDb.XQuery (>= 1.6.7)
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 |
|---|---|---|
| 1.6.7 | 44 | 8/24/2026 |
| 1.6.6 | 51 | 8/23/2026 |
| 1.6.5 | 80 | 8/22/2026 |
| 1.6.4 | 117 | 8/16/2026 |
| 1.6.3 | 88 | 8/14/2026 |
| 1.6.2 | 86 | 8/13/2026 |
| 1.6.1 | 106 | 8/4/2026 |
| 1.6.0 | 108 | 7/31/2026 |
| 1.5.0 | 127 | 7/27/2026 |
| 1.4.25 | 106 | 7/17/2026 |
| 1.4.24 | 88 | 7/14/2026 |
| 1.4.23 | 131 | 7/12/2026 |
| 1.4.22 | 107 | 7/10/2026 |
| 1.4.21 | 111 | 7/9/2026 |
| 1.4.20 | 103 | 7/9/2026 |
| 1.4.19 | 100 | 7/9/2026 |
| 1.4.18 | 101 | 7/8/2026 |
| 1.4.17 | 104 | 7/7/2026 |
| 1.4.16 | 130 | 6/30/2026 |
| 1.4.15 | 110 | 6/25/2026 |
Four engine fixes, two of them reported by Martin Honnen, plus a large correction to what
the conformance suite actually measures.
### `xsl:array` honours its `select` attribute
<xsl:array select="1 to 5"/> gave [], must give [1,2,3,4,5]
The parser read only child content, and that element has none. `xsl:array-member` fifteen
lines below it had always honoured `select`; only `xsl:array` never did. `composite` is now
read too — no by default, so each item becomes its own member — and XTSE3185 is raised when
`select` and a sequence constructor are both present.
A second fault in the same instruction, which the reported case would not have shown: the
finished array was handed on as a SEQUENCE of its members. That still printed
`[1,2,3,4,5]` — the right answer — and broke only at the edges, where a one-member array
collapsed to its member and `composite="yes"` became indistinguishable from `"no"`.
### The `xslt` tool reads files in the encoding they declare
`File.ReadAllText` assumes UTF-8, so a stylesheet or source declaring another encoding —
the W3C corpus has many in ISO-8859-1 — decoded to U+FFFD and then failed to parse with a
message about its own mangling:
Error: Name cannot begin with the '<U+FFFD>' character, hexadecimal value 0xFFFD.
The conformance harness had always decoded correctly, which is exactly why the corpus ran
and the shipped tool did not.
### Unicode normalization applies to character data, not to names
With `normalization-form="NFD"` an attribute written `üss="üß"` came out as
`üss="üß"` — the NAME decomposed as well as the value. A name is an identity
compared by code point, so normalizing it silently renames the attribute.
### `
` in an XPath string literal survives
string-to-codepoints('	

') gave 9 10 10, must be 9 10 13
An XPath expression in a stylesheet has already been through an XML parser, where `
`
is data that XML 1.0 §2.11 exempts from line-ending normalization. The XQuery parser then
applied its query-SOURCE rule (§A.2.1) a second time and could not tell that CR from a line
break. Needed `PhoenixmlDb.XQuery` 1.6.7, which this release pins.
### Conformance measurement
Not shipped in the engine, but it changes what the numbers mean. The XSLT test runner ended
its assertion switch with `_ => true`, so every assertion kind it did not implement was
reported as a PASS — including `<assert>`, the single most common assertion in the suite at
11024 occurrences. Seven kinds were missing, ~12800 occurrences in all.
With them implemented the honest figure is **96.3%**, against a previously published 98.5%
computed with assertions that could not fail. 176 real defects became visible; two are
fixed in this release.
The XQuery-side runner had the opposite defect — unimplemented assertions returned false —
which had been deflating QT3. Fixing that and seven other harness faults took QT3 from
76.56% to **95.11%**, clearing its 95% gate for the first time.
### Notes
Pins Core 1.6.7 and XQuery 1.6.7. Both were verified against the PUBLISHED packages before
this was tagged, not against sibling source — that combination is otherwise untested until
release day.