[ XAO ] OPS CONSOLE
SLUG: adr-0001-phc-xee-xsltSECTION: Examples & DesignSTATUS: stableWORDS: 249READ: 2mENGINE: phc/xsl3

ADR 0001 & Roadmap

Architecture Decision Record for pure-Rust xee-xslt in PHC plus the Xao v1.0.0 milestone and phase roadmap (M0–M3, P00–P06).

View source XML
01ADR 0001: Pure-Rust xee-xslt Extension for PHC (Implemented)
  • Decision: Incorporate safe, pure-Rust xee-xslt (#![forbid(unsafe_code)]) into PHC's phc-ext crate as XSLTProcessor (now enabled in PHC's default build alongside markdown-xml and xee-xpath/xot) and wrap it in Xao\Xslt\PhcNativeXsltDriver.

  • Why not C libxslt? libxslt only supports XSLT 1.0 and violates PHC's #![forbid(unsafe_code)] safety guarantee.

  • Result: Xao executes XSLT 3.0 stylesheets in-process with zero external sidecar, zero C dependencies, and allow_network = false by default, while preserving SaxonHttpDriver for distributed/HTTP XSLT strategies.

02Milestone Roadmap (M0–M3, Targeting v1.0.0)
MilestonePhasesScopeStatus
M0 — PHC-Native Core FoundationP00–P01Purge PHP 4 domxml/PEAR DB dead code, PSR-4 autoloader, phc.toml, DomDoc, DomFactory, PDO DbToXmlCompleted
M1 — XSLT 3.0 & App FrameworkP02–P03XsltDriverInterface, SaxonHttpDriver + sidecar, ClientSideXslDriver, AppDoc, SQLite ReferenceAppCompleted
M2 — PHC Co-Evolution & CIP04Compatibility report, ADR 0001 proposal, GitHub Actions CI (ubuntu-latest)Completed
M3 — Native XSLT 3.0 & MarkdownP05–P06P05: PhcNativeXsltDriver + xee-xpath/xot DOM upgrade (Completed); P06: Xao\MarkdownToXml + reference app integration toward v1.0.0 (Planned)In progress
03Audit Traceability

The overhaul direction originated in the technical viability audit recorded at Xao commit 7e6daa7 (verdict: Pivot / Narrow Scope), narrowing Xao into a lean, zero-dependency XML/XSLT 3.0 reference framework for PHC.