2002/ws/desc/tools validate-schema.sh,NONE,1.1

Update of /sources/public/2002/ws/desc/tools
In directory homer:/tmp/cvs-serv1842

Added Files:
	validate-schema.sh 
Log Message:
Other schema validator


--- NEW FILE: validate-schema.sh ---
#!/bin/bash
# Ugly schema validity using XSV
# HH - 2005-10-21

IFS="|"
valid=$(curl -s -F style=offline -F "docFile=@$1" http://www.w3.org/2001/03/webdata/xsv  | w3m -T text/html -dump)

echo $valid | fgrep -q -i "Problems with the schema-validity"
exit=$?

echo ----------------------------------------------------------------------

if [ $exit = 0 ]; then
    echo $1 is invalid
    echo $valid
else
    echo $1 is valid
fi

echo ----------------------------------------------------------------------

exit $exit

Received on Friday, 21 October 2005 13:35:21 UTC