A script to list all unique paths in a TEI document and construct a TEI instance incorporating only used paths.