Xao

XML Application Objects PHP / PHC + XSLT 3.0

From Markdown to a page you can inspect.

Xao is XML Application Objects, a PHP framework for content-driven websites. It brings Markdown, database records, and XML fragments into one document. XSLT 3.0 turns that document into the page you read.

How Xao builds a page

  1. Aggregate

    Read Markdown and bring structured sources into PHP on PHC.

    content.md
  2. Assemble

    Import the source nodes into one inspectable XML document.

    Xao\DomDoc
  3. Transform

    Apply an XSLT stylesheet to turn that tree into accessible HTML.

    page.xsl โ†’ HTML

Inside a working page

Published result

Read the field notes before leaving camp.

Markdown source
Read the **field notes** before leaving camp.
Imported XML
<?xml version="1.0" encoding="UTF-8"?><document xmlns="http://commonmark.org/xml/1.0"><paragraph><text xml:space="preserve">Read the </text><strong><text xml:space="preserve">field notes</text></strong><text xml:space="preserve"> before leaving camp.</text></paragraph></document>
Inspect the example XML