Skip to content

Releases

v1.5.0 — hardening against hostile input, closer to the specifications

Choose a tag to compare

@sashokfestival sashokfestival released this 14 Nov 14:22

Hardens the engine against stylesheets, queries and documents a host does not control, and brings its answers
closer to the specifications and to Saxon-HE 12.9. Some behaviour changed: read Upgrading from 1.4 in
CHANGELOG.md before replacing 1.4.x in a host.

  • Upgrade if your host runs input it does not control. In 1.4.x some stylesheets, queries and documents could
    crash the process past any try, or run past the time and memory limits. 1.5.0 stops each with a coded error.
  • Closer to the specifications and to Saxon-HE: URIs and file names, encodings, collations, number and date
    formatting, error codes.
  • API.
    • More ways to make and read values: XdmValue from a list of items, Size, ItemAt, Subsequence, Append;
      XdmAtomicValue from decimal, ulong, DateTime, DateTimeOffset, TimeSpan and Uri, and back.
    • ProcessorOptions.MaxStackBytes caps the stack a call may use.
    • ProcessorOptions.JsonNumbersAsDecimal reads JSON numbers without an exponent as xs:integer / xs:decimal.
    • A null where the API wants a value is ArgumentNullException in about 145 members, where 1.4 gave
      NullReferenceException.
  • Faster: grouping and distinct-values under collations, and hashing of binary values. On some inputs this
    is 9-40x faster than 1.4.
  • Assembly. AssemblyVersion is 1.5.0.0. The assembly is not strong-named, so hosts built against 1.4 load it
    without a binding redirect. Engine internals that 1.4 exported are gone: a host that reached them through the
    Underlying* properties must recompile. The changelog lists every member.
  • Docs:

Verification.

  • Conformance. The full W3C QT3 + XSLT 3.0 corpora pass at the documented baseline: 38 693 cases, with 17 known
    failures (XML 1.1 input documents). The runner in tests/QT3Test reproduces this.
  • New test suites. Two are now published under tests/:
    • 499 cases taken from the specifications, which pass on all three targets;
    • a concurrency test for one shared Processor.
  • CI. Builds all three targets and smoke-tests them on Windows; the .NET 8 and .NET 10 builds are also
    smoke-tested on Linux.

Assets. OutSmart.DAXon.dll is the .NET Framework 4.7.2 build, as in previous releases.
OutSmart.DAXon-1.5.0.zip carries all three builds, under net472/, net8.0/ and net10.0/. On NuGet, the package
picks the right one automatically.

v1.4.0 — .NET 8 and .NET 10, per-call limits, resource access control

Choose a tag to compare

@sashokfestival sashokfestival released this 09 Oct 12:09

Adds .NET 8 and .NET 10 builds, per-call time and memory limits, and control over what a stylesheet may
reach outside the transformation. It closes a long list of defects found in three reviews of the port.
Some behaviour changed: read Upgrading from 1.3 in CHANGELOG.md
before replacing 1.3.x in a host.

  • Platforms. One package with net472, net8.0 and net10.0 builds. Legacy code pages resolve on .NET 8/10.

  • Limits per call. ProcessorOptions.MaxMemoryBytes (500 MB by default) bounds what one compile, document
    build, transformation, query or XPath evaluation holds. Past it the call stops with SXLM0003.
    TransformTimeout (one minute by default) now applies to every call on its own, including each evaluation of
    a reused XPathSelector and each CallFunction, and to every phase of compilation.
    StackSizeThreshold sets how much stack a recursion must leave free.

  • Resource access. AllowFileRead, AllowFileWrite, AllowNetwork, AllowEnvironmentVariables, host
    allow/deny rules (exact, wildcard, regex, CIDR) and filters. Everything stays allowed by default.

  • Security. Two output-escaping fixes, both present in 1.3.3:

    • U+0000 in host strings or under version="1.1" switched escaping off, so data came out as markup;
    • a comment written through the XmlWriter faces could inject markup.

    Entity expansion is capped on every host.

  • Stability. Deep input, long expression chains and runaway work stop with a coded error instead of
    killing the process with a stack overflow or running past the time limit. Memory and file-lock leaks are
    closed.

  • Behaviour changes worth knowing:

    • parse errors arrive as DAXonApiException (SXXP0003);
    • JsonBuilder decodes escapes (SetEscaped(true) keeps the old form);
    • XdmValue.ToString() serializes the value;
    • collation strength=primary no longer ignores punctuation;
    • UTF-16LE/BE are written without a byte order mark unless asked;
    • DTD validation reports errors;
    • XInclude is refused explicitly.

    The full list is in the changelog.

  • Faster. Compilation, regex, XSLT 1.0-style comparisons and small repeated API calls. A reused selector
    allocates a quarter of what 1.3.3 did.

  • AssemblyVersion is 1.4.0.0. The assembly is not strong-named, so hosts built against 1.3 load it without
    a binding redirect. No public member was removed, so a host compiled against 1.3.3 runs on 1.4.0 without
    recompiling.

The full W3C QT3 + XSLT 3.0 conformance corpora pass at the documented baseline: 38 554 cases, 17 known
failures (XML 1.1 input documents). The runner in tests/QT3Test reproduces this. CI builds all three targets
and smoke-tests them on Windows, and the .NET 8 and .NET 10 builds also on Linux.

Assets: OutSmart.DAXon.dll is the .NET Framework 4.7.2 build, as in previous releases.
OutSmart.DAXon-1.4.0.zip carries all three builds under net472/, net8.0/ and net10.0/. On NuGet the
package picks the right one automatically.

v1.3.3

Choose a tag to compare

@sashokfestival sashokfestival released this 14 Sep 21:52

Fixes a process-killing stack overflow, makes UCA starts-with / ends-with runtime-independent,
and ships a .NET 10 build alongside the .NET Framework one.

  • Stack overflow on deeply nested expressions. Compiling a deeply nested expression walked the
    tree recursively with no guard and could take the process down with a real
    StackOverflowException instead of reporting an error. Affected .NET Framework too.
  • UCA collations under ICU. fn:starts-with / fn:ends-with with a UCA collation missed a
    match separated from the string edge by ignorable characters when the host's globalization
    backend is ICU. The answer no longer depends on the runtime.
  • Recursion depth on .NET 10 now matches .NET Framework (max depth on a 1 MB thread: 2472
    against 2368). Quick-jitted frames are about 2.25x the optimised size, which had cost roughly
    half the reachable depth of a non-tail user function.
  • The package now carries net472 and net10.0 builds. The .NET 10 assembly is where the
    depth fix takes effect: a .NET consumer resolving the .NET Framework asset got the collation and
    stack-overflow fixes but not that one. Closes #2.
  • The W3C conformance runner is published under tests/QT3Test, with the corpora fetched at
    pinned revisions.

Verified on .NET Framework 4.7.2, .NET 10 and .NET 10 with tiered compilation off: the spec suite
(489/489), the robustness probes (37/37) and the full W3C QT3 + XSLT 3.0 corpora at the documented
17-failure baseline in each.

Assets: OutSmart.DAXon.dll is the .NET Framework 4.7.2 build, as in previous releases;
OutSmart.DAXon-1.3.3.zip carries both builds under net472/ and net10.0/. On NuGet the package
picks the right one automatically.

v1.3.2 — contributed cleanup, Outbridge branding

Choose a tag to compare

@sashokfestival sashokfestival released this 09 Sep 10:16

What's new in 1.3.2

  • Contributed cleanup. Thanks to @ahSidata: OutSmart.DAXon.Values.Maps.KeyValuePair is now
    fully qualified where the BCL type would make the short name ambiguous, and the HashSet<T>
    capacity hints are gone. Behaviour is unchanged, and allocations during XQuery compilation drop
    slightly — most of those sets stay empty, so the pre-size was paying for nothing.
  • Packaging. The assembly now reads Outbridge as author, company and copyright holder, and
    points at the project's new home. The package id, the namespace and AssemblyVersion are
    unchanged, so this is a drop-in update.

Verified on .NET Framework 4.7.2 as usual: the full W3C QT3 (XPath/XQuery 3.1) and XSLT 3.0
conformance corpora at the documented 17-failure baseline, the spec suite, byte-identity gates
against Java Saxon-HE, and the robustness probes.

Multi-targeting .NET 10 is tracked in #2 and is not part of this release.

v1.3.1 — stack guard on small-stack threads

Choose a tag to compare

@sashokfestival sashokfestival released this 08 Sep 07:45

What's new in 1.3.1

A single fix, for hosts that run the engine on threads with a small stack.

  • Stack guard re-calibrated. The guard kept more headroom in reserve than it still needs —
    the reserve was measured back when the recursion error was converted deep inside the engine.
    On a caller thread with a 256 KB stack that stale reserve rejected ordinary work at any depth.
    Normal transforms now run on such threads, while genuine runaway recursion is still stopped
    with a catchable error before the CLR raises its uncatchable StackOverflowException.
  • XQueryCompiler now reports that recursion limit as DAXonApiException, like every other
    compile-time failure, instead of letting an internal exception escape to the host.

No API changes, and AssemblyVersion stays 1.3.0 — nothing needs re-binding.

Verification is unchanged: the full W3C QT3 (XPath/XQuery 3.1) and XSLT 3.0 conformance corpora
at the documented 17-failure baseline, the spec suite, byte-identity gates against Java Saxon-HE,
and the robustness probes — now including one that exercises the engine on a 256 KB thread.

v1.3.0 — performance, fixes, cleanup

Choose a tag to compare

@sashokfestival sashokfestival released this 10 Aug 11:29

What's new in 1.3.0

  • Performance. The engine was benchmarked case by case against Java Saxon-HE over the W3C
    corpora and the slow paths were fixed: XML input parsing, XPath filters and counts, string,
    map and integer operations, environment access. Typical workloads are noticeably faster
    than in 1.2.0.
  • Fixes. fn:substring with a very large length no longer crashes or returns a truncated
    string. castable as xs:dateTime / xs:time no longer throws on a malformed timezone.
  • Public API. Removed the members that existed only as stubs and threw
    NotImplementedException when called (the s9api streams surface). Nothing that worked
    before is affected.
  • Housekeeping. Several thousand lines of unreachable code removed; assembly
    ProductVersion now follows the package version.

Verification is unchanged: the full W3C QT3 (XPath/XQuery 3.1) and XSLT 3.0 conformance corpora
at the documented 17-failure baseline, the spec suite, byte-identity gates against Java
Saxon-HE, and the robustness probes.

Upgrading from 1.2.0 is drop-in.

v1.2.0 — clean public surface, reflective hosting, hardened compile diagnostics

Choose a tag to compare

@sashokfestival sashokfestival released this 04 Aug 07:45

What's new in 1.2.0

Public API surface

  • The assembly now exports only the public API: the OutSmart.DAXon.Api namespace and the
    closure of what its signatures reach — 537 exported types, down from 2018. Engine internals
    are no longer part of the contract; program against the Api namespace.
  • The exported surface carries zero case-colliding member pairs, so case-insensitive binders
    (PowerShell, VB.NET) can bind every public type. Two duplicates were removed in the process:
    • DocumentBuilder.BaseURI → use BaseUri (same validation, one store — previously the two
      properties were independent, and setting one while calling the other silently did nothing)
    • QName.GetNamespaceURI() → use GetNamespaceUri()
  • Processor gained a real parameterless constructor, so New-Object OutSmart.DAXon.Api.Processor
    and Activator.CreateInstance work (an all-optional constructor is invisible to reflective binders).

Correctness

  • xsl:strip-space is now honoured on every input path; previously one entry point could
    silently skip whitespace stripping.
  • A real xsl:use-package dependency cycle is reliably reported as XTSE3005, including under
    concurrent compiles (the cycle marker is per-thread now).

Compile diagnostics

  • The full error list of a failed compile is carried on the thrown exception, not only written
    to the logger's console channel.
  • The "too many errors" budget is scoped to one compilation: a long-lived, reused Processor
    no longer aborts a late compile of a two-error stylesheet with "Too many errors reported".
    A package compiled through xsl:use-package counts within the compilation that requested it.

Limits and diagnosability

  • maxInputBytes is enforced on the direct API entries, with clear byte/char units.
  • The NamePool ceiling failure now reports occupancy, the limit, and the remedy; swapping the
    NamePool of a live Configuration is refused instead of corrupting state.
  • Internal caches that grew without bound on a long-lived Processor are now capped.

Thread-safety hardening

  • Lazily built evaluators, SequenceType singletons (compared by reference in guard positions)
    and the per-Configuration conversion-rules instance are all published safely under
    concurrent first use; error-reporter counters moved under a lock.

Verification

Every change passed the internal battery: the W3C QT3 (XPath/XQuery 3.1) and XSLT 3.0
conformance corpora
at the documented 17-failure baseline (38 554 passing), 489 spec tests,
byte-identity checks on a shared Processor under concurrent load, and 36 robustness probes
(each proven to fail against the pre-fix engine).

Upgrading from 1.1.0

  • If you only used the Api namespace: rename BaseURI → BaseUri and
    GetNamespaceURI() → GetNamespaceUri() if you called them; nothing else changes.
  • If you referenced engine types outside Api, they are internal now — the supported way in is
    the Api surface.

v1.1.0 — localized date names, engine refactor

Choose a tag to compare

@sashokfestival sashokfestival released this 01 Aug 13:04

What's new since v1.0.0

Engine

  • Localized date names: format-date month and day-of-week names now come from the OS
    culture for any language Windows knows ('de' → Dezember, Donnerstag) instead of the
    English fallback with the [Language: en] prefix. Number spell-out stays English, as in
    Saxon-HE; unknown language tags keep the marked English fallback.
  • XPath 1.0 backwards-compatibility mode (version="1.0" stylesheets: first-item semantics,
    number() coercion of arguments) verified end-to-end and now exercised by the conformance
    driver.

Refactoring & hardening

  • Large de-Java cleanup across ~950 files: JAXP/StAX shim layer dissolved into native .NET
    (System.Xml.XmlWriter), monolithic parsers split into partial classes, remaining Java
    idioms replaced.
  • NotImplementedException census: 101 hollow or throwing stubs closed (XQuery tracing,
    condensed tiny-tree model, linked-tree namespace axis, s9api enumerators, namespace
    resolvers); the 26 deliberate exclusions are documented.
  • Robustness: hour-long soak runs (100k+ rounds on one shared Processor) show flat managed
    memory, private bytes and handle counts; culture lookups are gated against unbounded
    interning growth from attacker-controlled language tags.

Conformance
38 554 W3C QT3 (XPath/XQuery 3.1) + XSLT 3.0 cases passing; the fixed, documented set of
17 known failures (XML 1.1 input documents, which the .NET XmlReader cannot parse) is
unchanged. Verified verdict-for-verdict against Java Saxon-HE 12.9.

Assembly: OutSmart.DAXon.dll, net472, AssemblyVersion 1.1.0.0, self-contained.

v1.0.0 — first public release

Choose a tag to compare

@sashokfestival sashokfestival released this 28 Jul 09:19
f8d06b0

First public release of OutSmart DAXon — a native C# port of Saxon-HE 12.9.

What it is: a pure-managed XSLT 3.0 / XPath 3.1 / XQuery 3.1 engine for
.NET Framework 4.7.2+. No Java, no IKVM, no third-party dependencies —
one self-contained ~3 MB assembly.

Conformance: verified against the full W3C QT3 (XPath/XQuery 3.1) and
XSLT 3.0 test corpora; matches Java Saxon-HE verdict-for-verdict except
17 cases that require XML 1.1 input documents, which the .NET XmlReader
cannot parse.

Robustness: transformation and compile-time deadlines, input-size caps
and adaptive stack guards turn hostile input (deep recursion, deep JSON,
deep regex nesting) into catchable coded errors instead of a dead process.

Download

OutSmart.DAXon.dll — drop it next to your application, target net472 or later.