ADR 0001: Pure-Rust xee-xslt Extension for PHC (Implemented)
Decision: Incorporate safe, pure-Rust
xee-xslt(#![forbid(unsafe_code)]) into PHC'sphc-extcrate asXSLTProcessor(now enabled in PHC's default build alongsidemarkdown-xmlandxee-xpath/xot) and wrap it inXao\Xslt\PhcNativeXsltDriver.Why not C
libxslt?libxsltonly 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 = falseby default, while preservingSaxonHttpDriverfor distributed/HTTP XSLT strategies.
Milestone Roadmap (M0–M3, Targeting v1.0.0)
| Milestone | Phases | Scope | Status |
|---|---|---|---|
| M0 — PHC-Native Core Foundation | P00–P01 | Purge PHP 4 domxml/PEAR DB dead code, PSR-4 autoloader, phc.toml, DomDoc, DomFactory, PDO DbToXml | Completed |
| M1 — XSLT 3.0 & App Framework | P02–P03 | XsltDriverInterface, SaxonHttpDriver + sidecar, ClientSideXslDriver, AppDoc, SQLite ReferenceApp | Completed |
| M2 — PHC Co-Evolution & CI | P04 | Compatibility report, ADR 0001 proposal, GitHub Actions CI (ubuntu-latest) | Completed |
| M3 — Native XSLT 3.0 & Markdown | P05–P06 | P05: PhcNativeXsltDriver + xee-xpath/xot DOM upgrade (Completed); P06: Xao\MarkdownToXml + reference app integration toward v1.0.0 (Planned) | In progress |
Audit 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.