Skip to content

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

Latest

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.