autosegmentation XSL (missing from last commit)