Update structure member descriptions.
[pspp] / parse-all-xml
index 3d91d23006bbf25ed7373895b1b34884ab184e04..c7b7f93a532a78a9ce2058f3cd05e1032b93431c 100755 (executable)
@@ -1,22 +1,13 @@
 #! /bin/sh
 
-# Parse the structure members that do not represent models or graphs
-# and that are not page setups (which are always the first structure member).
+# Parse the structure members that do not represent models or graphs.
 # Also skip those with borderProperties, which indicate the non-"light"
 # format.
-lightTables=`ls -1 unzipped/*/*.xml |grep -vE 'notes|table|warning|chart|model' \
-          | xargs grep -EL '<([a-z]*:)?(model|graph|pageSetup|borderProperties)'`
-#printf 'Structure:\n'
-#for d in $lightTables; do
-#    ./parse-xml $d containment
-#done | sort | uniq -c | sort -rn
+lightTables=`find unzipped* -name '*.xml' | grep -vE 'notes|table|warning|chart|model' \
+          | xargs grep -EL '<([a-z]*:)?(model|graph|borderProperties)'`
 
-printf '\nAttributes:\n'
-for d in $lightTables; do
-    ./parse-xml $d attr:type
-done | sort | uniq -c | sort -rn
-
-#printf '\nLabels:\n'
-#for d in $lightTables; do
-#    ./parse-xml $d labels
-#done | sort | uniq -c | sort -rn
+if test -n "$1"; then
+    for d in $lightTables; do
+       ./parse-xml $d $1
+    done | sort | uniq -c
+fi