Hacker News new | ask | show | jobs
by spudlyo 48 days ago
I encode all the text, localization, provenance, pedagogical, and forced alignment data for my Latin language audiobook chapters[0] as TEI-XML. When I fetch a document out BaseX, I have an XQM module that wraps the document in a number of XML processing instructions (PIs), one being a pointer to the reader XSLT 1.0 stylesheet which does all the HTML rendering client-side.

It's a cool system, and I'll be bummed when I have to do this on the server. I already get warnings in the Firefox console about them soon deprecating XSLT support, so it's not just Chrome.

[0]: https://fabulae.orbilii.com

1 comments

I'd consider getting your workflow running in wasm (in wasmtime on the server) and then you can migrate the same workflow to the client using the same wasm module. Nearly all LLVM based compilers can compile to wasm (WebAssembly).