W3C home > Mailing lists > Public > xmlschema-dev@w3.org > February 2001

RE: validating schema's locally - without accessing the internet

From: John Black <jblack@deltek.com>
Date: Mon, 12 Feb 2001 11:16:42 -0500
Message-ID: <B02D87410885D411919B0008C74CA2502621DF@EXCHANGE>
To: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
Thanks, I can now validate the schema locally.  Now I am trying to validate
my instance document using the validated schema.  I include the binding:
	<juicers xmlns="http://www.juicers.org"
but I get the following result:
  <?xml version='1.0'?>
    <xsv docElt='{http://www.juicers.org}juicers' instanceAssessed='true'
        nsURIDeref='success' schemaErrors='0'
schemaLocs='http://www.juicers.org -> juicers.xsd' 
	  version='XSV of 2001/01/15 14:18:55'
		namespace='http://www.juicers.org' outcome='failure'/>
	<importAttempt URI='http://www.juicers.org/'
namespace='http://www.juicers.org' outcome='failure'/> 
	<notASchema filename='http://www.juicers.org/'/> 
	    Warning: Undeclared attribute xsi:schemaLocation for element
	      in unnamed entity at line 6 char 34 of
	    Error: can't find address for host "www.juicers.org" in http URL
and this is the same schema that I have just validated. Why does the
xsi:schemaLocation attribute work fine in the schema but generate a warning
when the schema is accessed through the instance?  And is there anyway to
tell XSV that a URI is not "real"? so that it won't give me an error for not
finding it?

-----Original Message-----
From: ht@cogsci.ed.ac.uk [mailto:ht@cogsci.ed.ac.uk]
Sent: Monday, February 12, 2001 8:03 AM
To: John Black
Cc: 'xmlschema-dev@w3.org'
Subject: Re: validating schema's locally - without accessing the

John Black <jblack@deltek.com> writes:

> I am using Robert Costello's tutorial lab exercises.  I am able to
> the first schema juicers.xsd using XSV while I am connected to the
> But I would like to be able to use XSV version='XSV
> of 2001/01/15 14:18:55' locally to validate schemas against the schema for
> schemas when I am not connected to the internet.  I have cut and saved
> xmlschema.xsd from the 10/24/2000 xml-structures document, and
> from the 10/24/2000 xml-datatypes document.  I have not, however, been
able to
> find where I can acquire xml.xsd mentioned in the import statement in
> xmlschema.xsd:
>  <import namespace="http://www.w3.org/XML/1998/namespace"
>          schemaLocation="http://www.w3.org/2000/10/xml.xsd">
> ....
>  </import>

Um, it tells you right there:  http://www.w3.org/2000/10/xml.xsd --
Indeed you're better off getting all three schemas from there, as
there have been a few patches to the schema and DTD there -- I think
all you need is


  Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
          W3C Fellow 1999--2001, part-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/
Received on Monday, 12 February 2001 11:10:11 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:51 UTC