Specify dimension list at beginning of data.
[pspp] / parse-all-xml
1 #! /bin/sh
2
3 # Parse the structure members that do not represent models or graphs.
4 # Also skip those with borderProperties, which indicate the non-"light"
5 # format.
6 lightTables=`ls -1 unzipped/*/*.xml |grep -vE 'notes|table|warning|chart|model' \
7           | xargs grep -EL '<([a-z]*:)?(model|graph|borderProperties)'`
8
9 if test -n "$1"; then
10     for d in $lightTables; do
11         ./parse-xml $d $1
12     done | sort | uniq -c | sort -rn
13 fi