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

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" ...>
  ...
</xs:schema>

or:

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

or:

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

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.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/

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