An XSLT siteswap validator by Colin E.
✓ Published0🌍 Public
CColinEberhardt
Last edited Nov 12, 2013
Created on Apr 8, 2013
This example validates juggling siteswap patterns through a pipeline of three XSLT transformations. It first splits each siteswap string into individual throw elements using a recursive template, then inserts catch elements where throws land on subsequent beats, and finally evaluates validity by checking that each beat contains at most one catch and the pattern forms a valid permutation. The transformations use XSLT 1.0 with standard functions like `substring`, `position`, and `mod`, operating on structured XML documents rather than raw text. The source data is an XML file containing siteswap sequences, processed through the stylesheets to produce annotated output with valid or invalid attributes.
AI-generated description