Skip to content

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

Choose a tag to compare

@sashokfestival sashokfestival released this 04 Aug 07:45
· 182 commits to main since this release

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.