Xao Documentation
XML Application Objects for PHP 8 and PHC — zero-dependency XML content aggregation and XSLT 3.0 presentation.
Xao (pronounced "Zow") is XML Application Objects for PHP — a zero-dependency, XML/XSLT 3.0 web application framework for content-centric applications, engineered to run natively on the Rust-based PHC application server (phc serve, isolate and worker modes).
Homepage: https://xao.ndx.au
Framework Repository: ndx-au/Xao (
v1.0.0-devtargetingv1.0.0)Example Applications: ndx-au/xao-example-apps
XML Is Not Dead — And Neither Is XSLT
Markdown has become the de facto authoring format for raw text on IT systems, while modern web stacks routinely spend megabytes of JavaScript, layers of JSON serializers, and fragile string-concatenation templates just to assemble structured content from a few sources and render HTML.
Yet Markdown does not have the structural integrity or flexibility of XML in either of its two forms: Well-Formed and Schema-Validated. For content-centric web applications — publishing platforms, documentation portals, catalogs, knowledge bases, and multi-channel feeds — XML conglomeration plus XSLT 3.0 remains one of the cleanest architectures ever designed.
Xao embraces both worlds:
Markdown as a first-class input: PHC's default build compiles
markdown-xml(comrak) natively in safe Rust, turning Markdown + GFM directly into CommonMark XML 1.0 (http://commonmark.org/xml/1.0) ready to graft into a Xao XML tree.Declarative tree transformation: XSLT 3.0 matches patterns against a real document tree rather than interleaving control flow and HTML strings.
True separation of concerns: PHP queries databases, loads Markdown/XML fragments, enforces access control, and builds one inspectable domain XML document. XSLT 3.0 owns 100% of presentation.
Zero Composer dependencies: Core framework classes under
src/use only PHP 8 standard library primitives implemented natively in PHC (DOMDocument,DOMXPath,PDO,curl_exec, sessions,XSLTProcessor,phc_markdown_to_dom()).
You Are Reading a Live Xao Demonstration
This site (XaoDocs) is not a static site generator output. Every page you browse here is assembled on request from plain Markdown files in content/*.md, converted into CommonMark XML 1.0 in-process by PHC, merged with site navigation and theme metadata in Xao\DomDoc, and transformed in-process by PHC's native XSLT 3.0 engine (PhcNativeXsltDriver).
Use the XSLT Theme switcher at the top of the page to render the exact same XML tree through five structurally distinct XSLT 3.0 stylesheets — from a three-column reference desk (Atlas) to a collapsible operations view (Console) and a WCAG AAA linear screen-reader edition (Reader). Click Inspect XML on any page to view the raw <xao-docs> XML tree feeding all five themes.
Documentation Map
| Guide | Topic | Audience |
|---|---|---|
| Getting Started | Install, project layout, and first Xao app on PHC | New users |
| Architecture & XML Aggregation | The XML conglomeration pattern and separation of concerns | Architects & developers |
| XSLT 3.0 Themes vs CSS | Structural and accessibility transformations in XaoDocs | Theme authors & designers |
| Core API Reference | DomDoc, DomFactory, AppDoc, Response, Exceptions | Framework developers |
Database Aggregation (DbToXml) | SQLite / PDO serialization into DomDoc fragments | Backend developers |
| Markdown Aggregation | CommonMark XML 1.0 via PHC markdown-xml and P06 roadmap | Content & CMS authors |
| XSLT 3.0 Drivers | PhcNativeXsltDriver, SaxonHttpDriver, ClientSideXslDriver | Platform engineers |
| PHC Runtime & Compatibility | phc.toml, isolate vs worker modes, xee-xpath/xot | Operators & contributors |
| Security Model | XXE blocking, realpath() containment, slugs, CSRF, sandbox | Security reviewers |
| Reference Applications | Built-in SQLite catalog app + XaoDocs flat-file CMS | Evaluators |
| ADR 0001 & Roadmap | Pure-Rust xee-xslt extension design & v1.0.0 milestones | Contributors |