- From: Henry S. Thompson <ht@cogsci.ed.ac.uk>
- Date: Wed, 09 Jul 2003 10:11:05 +0100
- To: "Glenn R Fletcher" <grfletcher@raytheon.com>
- Cc: xmlschema-dev@w3.org
"Glenn R Fletcher" <grfletcher@raytheon.com> writes:
> I've written a test xml instance document and xml schema that validates
> (using the XSV validator) when I reference the
> "http://www.w3.org/2001/XMLSchema" namespace in both documents.
>
> Does anyone know how I would validate these documents without access to the
> internet? I've read the "is it possible to validate schemas locally
> without accessing the internet" thread, but I'm still not having any luck.
> I downloaded XSV locally on to my machine, but when I try to reference it
> within my schema and instance document, I get the following error:
>
> <?xml version='1.0'?>
> <xsv xmlns="http://www.w3.org/2000/05/xsv" docElt="{None}test1"
> instanceAssessed="false" schemaDocs="Test.xsd" schemaErrors="0"
> target="file:///H://TestInstance.xml"
> version="XSV 2.5-1 of 2003/06/24 13:33:31">
> <schemaDocAttempt URI="file:///H://Test.xsd" outcome="failure"
> source="command line">
> <notASchema filename="file:///H://Test.xsd">Root was <schema>, but
> not in W3C XML Schema namespace: http://www.w3.org/2001/XMLSchema (was
> c:/Program Files/XSV)</notASchema>
> </schemaDocAttempt>
> </xsv>
The error message means exactly what it says. Your schema document
(Test.xsd) evidently looks like this:
<schema xmlns="c:/Program Files/XSV">
It should look like this:
<schema xmlns="http://www.w3.org/2001/XMLSchema">
This will _not_ cause XSV to go to the internet, and will work just
fine on an isolated LAN.
ht
--
Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
Half-time member of W3C Team
2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
Fax: (44) 131 650-4587, e-mail: ht@cogsci.ed.ac.uk
URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Wednesday, 9 July 2003 05:11:06 UTC