Declarative Amsterdam
@ CWI, Amsterdam
2026-11-13

Rebooting EXPath

Modernizing and resurrecting

Younes Bahloul, Adam Retter

tech@evolvedbinary.com
 

github.com/evolvedbinary

The EXPath Project

  • Origins

    • Previously EXSLT 2.0; the project and website were forked from EXQuery.

  • Community Standards

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

  • Continuation of the Project

    • EXQuery founders, XPath contributors, and GitHub group custodians.

The State of the Legacy Project

  • Website Unavailable

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

  • Unreadable Specifications

    • Many of the specs were broken

  • Hard To Maintain Repository

    • Inconsistent publishing flow

    • No clear validation steps

Goals of the Reboot

  • Restore Access

    • Secure a new home for the standards at expath.xyz.

  • Modernize Publication

    • Make the sources, validation, and website build easier to maintain.

    • Move toward ReSpec

  • Continue Development

    • Resume common module interface work; this remains unfinished.

    • Give the standards a home we can build, publish, and maintain.

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.

  • Missing Schemas

    • Identify the RNC and RNG schemas missing from the later repository.

Reconstructing Validation

  • The Investigation

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

  • Recover The Missing Schemas

    • Find the required RNC and RNG schema files.

    • Must use the exact version

  • Validate Before Building

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

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?

A Clear Source-to-Site Mapping

  • One Source per Site Document

    • 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.

Architectural Restructuring

  • One Repository

    • A Maven parent manages the sibling modules together.

  • Validation Before Generation

  • A Common Build Entry Point

    • Run mvn package to validate the sources and build the website.

Fixes we had to make to the specs

  • Submit refs to Database of Web Standards & Related References

  • 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

Switching to ReSpec

  • Clearer Presentation

    • ReSpec provides a clearer HTML presentation of the standards.

  • XML During the Transition

    • One shared XSLT stylesheet converts the existing XML sources to ReSpec.

  • Gradual Source Migration

    • Move towards authoring directly in ReSpec and validating it on input.

  • Export Defined Terms

    • Function names and error codes are <dfn class="export">, so other specs can link to them via ReSpec xref: expath-xyz#25

The New Developer Experience

  • Build the Website

    • Run mvn 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.

  • Validate and build future contributions in CI

  • Publish validated builds from CI

  • Validate ReSpec input as sources migrate

  • Enable search (Next)

Our 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.

Questions?

Thank You

Rebooting-expath-draft-4

By Younes Bahloul

Rebooting-expath-draft-4

Presentation given for XML Prague - 7 June 2024 - University of Economics, Prague

  • 26