Splitting XML Documents at Milestone Elements Using the XSLT Upward Projection Method
summary
Presents an XSLT-based upward projection method that splits XML at milestone elements (page breaks, column switches, line breaks) by grouping leaf nodes and projecting their ancestors, implemented in Saxon XSLT 3 with conditional identity template logic and optional generate-id comparison. Tests use a TEI file (Martin Luther example with 452 page breaks) and show runtime scales roughly linearly with document length, not number of split points; replacing containment tests with ID comparisons speeds some cases ~20×. Method is not streamable; reusable via XSLT 3 packages.
AI-written summary · about
