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

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"
        	   xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
               xsi:schemaLocation=
               		"http://www.juicers.org
               		juicers.xsd">
but I get the following result:
  <?xml version='1.0'?>
    <xsv docElt='{http://www.juicers.org}juicers' instanceAssessed='true'
instanceErrors='0' 
        nsURIDeref='success' schemaErrors='0'
schemaLocs='http://www.juicers.org -> juicers.xsd' 
	
target='file:/C:/xml/xml-course/xml-schemas/labs/lab01/juicers.xml'
validation='lax' 
	  version='XSV 1.173.2.15.2.5/1.74.2.26 of 2001/01/15 14:18:55'
xmlns='http://www.w3.org/2000/05/xsv'>
	<importAttempt
URI='file:/C:/xml/xml-course/xml-schemas/labs/lab01/juicers.xsd' 
		namespace='http://www.juicers.org' outcome='failure'/>
	<notASchema
filename='file:/C:/xml/xml-course/xml-schemas/labs/lab01/juicers.xsd'/> 
	<importAttempt URI='http://www.juicers.org/'
namespace='http://www.juicers.org' outcome='failure'/> 
	<notASchema filename='http://www.juicers.org/'/> 
	<XMLMessages>
	    Warning: Undeclared attribute xsi:schemaLocation for element
schema 
	      in unnamed entity at line 6 char 34 of
file:/C:/xml/xml-course/xml-schemas/labs/lab01/juicers.xsd 
	    Error: can't find address for host "www.juicers.org" in http URL
"http://www.juicers.org/" 
      </XMLMessages>
  </xsv>
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
internet


John Black <jblack@deltek.com> writes:

> I am using Robert Costello's tutorial lab exercises.  I am able to
validate
> the first schema juicers.xsd using XSV while I am connected to the
internet. 
> But I would like to be able to use XSV version='XSV
1.173.2.15.2.5/1.74.2.26
> 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
datatypes.xsd
> 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

  http://www.w3.org/2000/10/xml.xsd
                            XMLSchema.{xsd,dtd}
                            datatypes.dtd

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