Forester 4.2 › Intermediate representation of the XML format [00WL]

Forester’s primary output format is XML, rendered live in the browser to HTML using an XSLT stylesheet. Although this will continue to be the main output format, together with Kento Okura as well as our friends from the Topos Institute I am hoping to explore richer hypermedia interfaces for forests that could transcend the limitations of static HTML output.

In order to support multiple backends without creating a log of code churn, I have created an OCaml abstraction of the XML format that will serve as a “source of truth” for Forester’s output — which can be serialised directly to XML, or rendered in a different way (e.g. as HTML or htmx emitted by a hypermedia server).

With this change, I would expect Forester’s XML format to begin to change less and less over time, perhaps culminating in a versioned schema. I do not, however, guarantee that I will not make breaking changes to the format going forward.