Home Articles Books Search About
日本語
Fast TEI/XML Deployment on Vercel: Automating XSLT Transformation with saxon-js

Fast TEI/XML Deployment on Vercel: Automating XSLT Transformation with saxon-js

Introduction A common architecture in Digital Humanities is to transform TEI (Text Encoding Initiative) XML data into HTML using XSLT and publish it on the web. Traditionally, client-side XSLT transformation in the browser (via <?xml-stylesheet?> or JavaScript’s XSLTProcessor) has been the standard approach, but it comes with several challenges: The browser executes XSLT transformation on every page load, resulting in slow rendering Poor SEO and web crawler support Inconsistent XSLT implementations across browsers This article shows how to run XML-to-HTML transformation at build time on Vercel and serve pre-generated static HTML. ...

Fast TEI/XML Deployment on Vercel: Automating XSLT Transforms with saxon-js

Fast TEI/XML Deployment on Vercel: Automating XSLT Transforms with saxon-js

Introduction A common architecture in Digital Humanities is to encode texts in TEI (Text Encoding Initiative) XML and transform them to HTML via XSLT for web publication. Traditionally, this transformation is done client-side in the browser (using <?xml-stylesheet?> or JavaScript’s XSLTProcessor), but this approach has several drawbacks: The browser must run the XSLT transformation on every page load, slowing down rendering Poor SEO / crawler support Browser-specific XSLT implementation differences This article describes how to run XSLT transforms at build time on Vercel and serve pre-built HTML as a static site. ...