W3C home > Mailing lists > Public > public-ws-desc-eds@w3.org > October 2005

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

From: Hugo Haas via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 21 Oct 2005 13:35:19 +0000
To: public-ws-desc-eds@w3.org
Message-Id: <20051021133519.07D854F25B@homer.w3.org>

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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:31:54 UTC