Declarative Amsterdam
@ CWI, Amsterdam
2026-11-13

Rebooting EXPath

Younes Bahloul, Adam Retter

tech@evolvedbinary.com
 

github.com/evolvedbinary

Younes
Bahloul

  • Staff Engineer @ Evolved Binary

  • Masters in Computer Vision and Image Processing

  • Developer of the Petal (LwDITA) Editor

  • Software Engineer

    • React / TypeScript / Node.js

    • Java

  • Developer on the Elemental NoSQL Database project

  • Director @ Evolved Binary

  • Software Engineer

    • Elemental / FusionDB / RocksDB

    • Java / C++

    • XQuery / XSLT

  • W3C XQuery WG - IE

  • (New) Chair of W3C EXPath CG

  • Founder of EXQuery

Adam
Retter

History of the EXPath Project

  • Origin

    • Florent Georges - Replaced EXSLT 2.0 project with EXPath

    • Setup as W3C Community Group

    • Created expath.org website

      • Forked from the EXQuery website

  • Mission - Community Standards

    • Define XPath extension modules for use across the XML ecosystem.

  • Achievements

    • 10 Modules of XPath Functions

    • A Packaging System for XPath Applications/Libraries

    • A Framework for creating XPath Web Applications

Issues with the Legacy Project

  • Website Unavailable

    • The standards were unreadable for over two years, until June 2026

  • Many Specifications did not Validate

    • The XML (xmlspec) / HTML (ReSpec) was invalid

  • Difficult to Develop/Publish

    • Multiple Build Tools

    • No Validation of Specs

    • Mismatch between expath.org website and GitHub repo

    • Lack of Documentation

  • Chairs Unresponsive

  • Community Stalled

Goals of the Reboot

  • Secure Existing Assets

  • Modernize Publication

    • Move toward ReSpec

    • Make Website creation a single-step process

  • Stabilise Access

  • Continue Development

    • Reinvigorate EXPath CG

    • Drive existing standards to 1.0

    • New people and new standards...

Archaeology

1st - Forensic Engineering and History

  • Understand File History

    • Moved files lost their existing Git history.

  • Understand Missing Context

    • Use the surviving files and history to understand the old publishing setup.

    • Identify differences between expath.org website and GitHub repo.

  • Missing/Wrong Schemas

    • Identify the RelaxNG and XML schemas missing from the later repository.

2nd - Reconstructing Validation

  • The Investigation

    • Inspect the xmlspec and repository contents to identify the required schemas.

  • Recover The Missing Schemas

    • Find the required RelaxNG and XML schema files.

    • Must use the correct schema version.

  • Validate Before Building

    • Keep all schemas in the repo, and validate sources before moving forward.

3rd - Taming the XSLT Chaos

  • Scattered Inputs and Stylesheets

    • Many source files and XSLT files, spread across the old repository.

  • Undocumented Variants

    • archive, archive-diff, archive-extended, and other similarly named files.

  • The Question

    • Which source and transformation produced each document on the site?

Design
and
Architecture

A Clear Source-to-Site Mapping

  • 1:1 Spec Document to Web Page

    • Each source represents the corresponding document on the website.

  • Keep Revisions in Git

    • Keep one current source file; use Git to review and restore earlier versions.

  • One Shared Stylesheet

    • Keep the transformation logic in a single XSLT stylesheet.

Let's Build It!

Code Restructuring

  • One Build Tool

    • Maven Multi-module project

    • Each spec/schema/transformation has its own module (directory)

    • Very easy to add new specs

    • One build-command builds everything

  • Validation Before Generation

  • Validation After Generation

    • Ensure that generated webpages are valid.

Switching to ReSpec

  • Easy Transformation!

    • One shared XSLT stylesheet converts the existing xmlspec (XML) sources to ReSpec (XHTML5).

  • Clearer Presentation

    • ReSpec provides a clearer HTML presentation of the standards.

    • Highlights spec errors in the browser!

  • Export Defined Terms

    • Function names and error codes are <dfn class="export">

    • Now easier for other specs to link to them via ReSpec xref: expath-xyz#25

  • Gradual Source Migration?

    • We support authoring in ReSpec already

    • Could replace xmlspecs with their ReSpec outputs!

Fixing the Specs

  • Reconstruct 20130312/binary.xml and function-catalog.xml

    • Split the generated binary-expanded.xml back into an XMLSpec and a function catalog, like every other version: expath-xyz#24

  • Make key attributes mandatory in xmlspec.rnc: expath-xyz#28

    • spec/@w3c-doctype sets the status: draft or final

    • title/@role sets the shortName: expath-binary

    • back/div1/@id gives the appendices stable anchors

  • Submit refs to Database of Web Standards & Related References

The New Experience

  • Build the Website

    • Run mvnw package from the repository root.

  • Validation in the Build

    • Validation runs as part of the build, before the website is generated.

  • Make Changes with Confidence

    • Find the source document easily and maintain one shared transformation.

    • CI and ReSpec show you any problems in real-time.

  • Publish validated builds from CI (Done!)

  • Validate and build future contributions in CI

  • Headless validation of ReSpec website

  • Add Search to the Website (Next)

Roadmap

Demo Time

Help us Check the New Site

  • Visit expath.xyz

    • Choose a specification you know and review the new publication.

  • Check the Details

    • Read the text and examples; follow references and links.

  • Tell Us What Needs Fixing

    • Report missing content, rendering problems, and broken links.

Thank You, and Questions?