c=`xmlstarlet sel -Nxqx="http://www.w3.org/2005/XQueryX"-t-c"count(//xpath[schemas/validation[@schema=\"xpath-$i.0.rnc\" and @valid=\"yes\"]])"$file`
count=$((count+c))
done
counts[$i]=$count
percent=`echo"scale=1; 100*$count/$n" | bc`
printf"& $percent\\\\%% "
done
count=0
for file in$xpmft
do
c=`xmlstarlet sel -Nxqx="http://www.w3.org/2005/XQueryX"-t-c"count(//xpath[schemas/validation[@schema=\"xpath-3.0-std.rnc\" and @valid=\"yes\"]])"$file`
count=$((count+c))
done
counts[4]=$count
percent=`echo"scale=1; 100*$count/$n" | bc`
printf"& $percent\\\\%% "
printf'\\\\\n'
N=$n
# total number of XPathMark-PT queries
printf'XPathMark-PT '
n=`grep'<ast'$xpmpt | wc-l`
printf"& %'.0f "$n
#coverage of standard XPath languages
for((i=1; i < 4; ++i))
do
count=0
for file in$xpmpt
do
c=`xmlstarlet sel -Nxqx="http://www.w3.org/2005/XQueryX"-t-c"count(//xpath[schemas/validation[@schema=\"xpath-$i.0.rnc\" and @valid=\"yes\"]])"$file`
count=$((count+c))
done
counts[$i]=$count
percent=`echo"scale=1; 100*$count/$n" | bc`
printf"& $percent\\\\%% "
done
count=0
for file in$xpmpt
do
c=`xmlstarlet sel -Nxqx="http://www.w3.org/2005/XQueryX"-t-c"count(//xpath[schemas/validation[@schema=\"xpath-3.0-std.rnc\" and @valid=\"yes\"]])"$file`
count=$((count+c))
done
counts[4]=$count
percent=`echo"scale=1; 100*$count/$n" | bc`
printf"& $percent\\\\%% "
printf'\\\\\n'
N=$((N + n))
# total number of XQuery queries
printf'XMark '
n=`grep'<ast'$xm | wc-l`
printf"& %'.0f "$n
# coverage of standard XPath languages
for((i=1; i < 4; ++i))
do
count=0
for file in$xm
do
c=`xmlstarlet sel -Nxqx="http://www.w3.org/2005/XQueryX"-t-c"count(//xpath[schemas/validation[@schema=\"xpath-$i.0.rnc\" and @valid=\"yes\"]])"$file`
count=$((count+c))
done
counts[$i]=$((count + counts[i]))
percent=`echo"scale=1; 100*$count/$n" | bc`
printf"& $percent\\\\%% "
done
count=0
for file in$xm
do
c=`xmlstarlet sel -Nxqx="http://www.w3.org/2005/XQueryX"-t-c"count(//xpath[schemas/validation[@schema=\"xpath-3.0-std.rnc\" and @valid=\"yes\"]])"$file`