W3C home > Mailing lists > Public > xmlschema-dev@w3.org > July 2003

Re: Validating Schema on a lan without internet access (using XSV)

From: Jeni Tennison <jeni@jenitennison.com>
Date: Wed, 9 Jul 2003 10:04:25 +0100
Message-ID: <113168123238.20030709100425@jenitennison.com>
To: "Glenn R Fletcher" <grfletcher@raytheon.com>
CC: xmlschema-dev@w3.org

Hi Glenn,

> 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:

You haven't shown us your schema or instance, but the error implies
that your schema doesn't have a namespace declaration for the
'http://www.w3.org/2001/XMLSchema' namespace in it. The schema should
look like:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" ...>


<schema xmlns="http://www.w3.org/2001/XMLSchema" ...>


<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" ...>

or you can use any other prefix you like, as long as its associated
with the namespace 'http://www.w3.org/2001/XMLSchema'. But you need to
have the namespace declaration (the xmlns:* attribute) so that the
<schema> element is labelled as belonging to the
'http://www.w3.org/2001/XMLSchema' namespace. If you don't have that,
the validator will think that the "schema" isn't really an XML Schema.

Don't worry about not being connected to the internet. When it's used
in a namespace declaration, the URL 'http://www.w3.org/2001/XMLSchema'
is just used as a unique identifier for a namespace (so that
applications can tell what elements actually mean); it isn't
dereferenced as a URL.

If your schema already looks like one of the above, and it isn't
working, then please post the schema document and the instance
document so that we can look at them and see if we can spot where the
error is coming from.



Jeni Tennison
Received on Wednesday, 9 July 2003 05:04:29 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:56:02 UTC