parse-xml: Add ability to limit versions dumped.
[pspp] / parse-detail-xml
index 6d7858835eea14ea22f584442816e3c1cf632148..15a19341e596ce497eda47901a8b52deb8b5b633 100755 (executable)
@@ -2,10 +2,8 @@
 
 # Parse the detail XML members.
 legacyXML=`ls -1 unzipped/*/*.xml |grep -vE 'outputViewer|stats|chart|model'`
-for d in $legacyXML; do echo $d; done | wc
-#grep -h -o '<style id="visualizationStyle"[^>]*>' $legacyXML
 if test -n "$1"; then
     for d in $legacyXML; do
-       ./parse-xml $d $1
+       ./parse-xml $d "$@"
     done
 fi