XaoDocs Accessible Linear Edition

Document Summary

XSLT 3.0 Themes vs CSS Skins

Why XSLT themes are structurally and semantically richer than CSS-only themes — including accessibility-first DOM transformations.

Section
Core Concepts
Target audience
Designers, accessibility engineers, and CMS builders
Estimated reading time
3 minute(s) (444 words)
Major sections
3

Most modern web frameworks treat "theming" as swapping CSS variables, colors, and fonts while keeping the HTML DOM fixed. That works for cosmetic branding, but breaks down as soon as different audiences need different document structure, reading order, or assistive landmarks.

With XSLT 3.0, every theme is a structural transformation from one semantic XML source tree into an arbitrary target HTML DOM.

Five Themes, One XML Tree

In XaoDocs, every documentation page produces the exact same <xao-docs> XML conglomeration (inspectable at /xml/{slug}), then routes it through one of five independent XSLT 3.0 theme collections:

ThemePrimary AudienceStructural Transformation (Not Just CSS)
Atlas (?theme=atlas)Framework developers3-column grid: left categorized nav sidebar, center article, right sticky "On this page" outline
Folio (?theme=folio)Architects & evaluatorsEditorial cover spread, collapsible library <details>, and XPath 3.1 sibling-grouped numbered chapters
Console (?theme=console)Operators & SREsTelemetry strip (slug, words, reading-minutes, phc/xsl3), nav rail, and collapsible <details> H2 modules
Reader (?theme=reader)Screen-reader & low-vision usersUpfront Document Summary, inline numbered TOC, <figure><figcaption> code wrappers, directory after article, zero JS
Handbook (?theme=handbook)Technical auditors & print<dl class="spec-meta"> specification ledger, numbered section index, @media print page layout

How Accessibility Benefits From XSLT

Consider the Reader theme (themes/reader/page.xsl):

Shared Templates & xee-xslt Patterns

XaoDocs' themes share Markdown element rendering via <xsl:include href="../shared/commonmark.xsl"/> and navigation partials via <xsl:include href="../shared/partials.xsl"/>.

Under PHC's xee-xslt engine, XaoDocs uses: