0dfd8102500184356c46daafdbdc4d2055a1e226
[pspp] / parse-all-xml
1 #! /bin/sh
2
3 # Parse the structure members that do not represent models or graphs
4 # and that are not page setups (which are always the first structure member).
5 # Also skip those with borderProperties, which indicate the non-"light"
6 # format.
7 lightTables=`ls -1 unzipped/*/*.xml |grep -vE 'notes|table|warning|chart|model' \
8           | xargs grep -EL '<([a-z]*:)?(model|graph|pageSetup|borderProperties)'`
9 #printf 'Structure:\n'
10 #for d in $lightTables; do
11 #    ./parse-xml $d containment
12 #done | sort | uniq -c | sort -rn
13
14 printf '\nAttributes:\n'
15 for d in $lightTables; do
16     ./parse-xml $d text
17 done | sort | uniq -c | sort -rn
18
19 #printf '\nLabels:\n'
20 #for d in $lightTables; do
21 #    ./parse-xml $d labels
22 #done | sort | uniq -c | sort -rn