./files.list && saxon.bash $0 ./files.list > syntactic_complexity_of_this_dir.xhtml OR $ xmlstarlet list | saxon.bash $0 - > syntactic_complexity_of_this_dir.xhtml Although setting $dataSel may accomplish the same goal in many circumstances. E.g.: $ xmlstarlet list > ./fileslist.xml && saxon -xsl:$0 -s:./fileslist.xml -o:./syntactic_complexity_of_this_dir.xhtml dataSel='select=tei_*.xml;' Furthermore, we do not really need to test for validity, so --parserFeature?uri=http%3A//apache.org/xml/features/nonvalidating/load-external-dtd:false is useful if the DTD is not where the DOCTYPE declaration says it is. NOTE: It should be quite easy to change this program so that it expects as input the output of `tree -N -X -s` instead, which would allow it to also use recurse=yes on the collection(). (Note that if you are using `tree -X` for fun rather than as input here, you might want --si instead of -s, and probably want --du in addition.) ?>
counts for determining syntactic complexity
Syntactic Complexity