6 out=`basename "$i" .xp`.output
7 doc=$(cat "$i" | cut -f 1 -d ',')
8 if grep -q -- -c "$i" >/dev/null 2>&1
14 query=$(cat "$i" | cut -f 3 -d ',')
16 ../scripts/xpath.sh $opt "$query" ../docs/"$doc".xml > tmp
17 ../../main.native -nw tmp '/child::*' "$out"