full-frags.sh 304 Bytes
Newer Older
Sylvain Schmitz's avatar
Sylvain Schmitz committed
1 2 3 4 5 6 7 8 9 10 11
#!/bin/bash

fragments=( `grep 'file=' $1 | sed 's/.*file=\"\([\.a-zA-Z0-9\-]*.rnc\).*/\1/g'` )

printf 'count(/benchmark/xpath[schemas[validation[('
printf "@schema='${fragments[0]}' "
for ((f=1; f<${#fragments[@]}; ++f))
do
    printf "or @schema='${fragments[f]}' "
done
echo ") and @valid='yes']]])"