Re: XSV: pb with xml headers in schemas & schemaLocation by default

Mathieu Mangeot Lerebours <Mathieu.Mangeot@imag.fr> writes:

> <import> works fine, my problem is solved. Thank you.

> 1) xml header can't be used in schemas: bug or feature ?
> 
> I thought that an XML schema was an XML document.
> 
> So I wrote on top of my XML schemas the usual XML header:
> 
> <?xml version='1.0' ?>
> 
> But xsv fails to include the schema.
> 
> Is it a bug or a feature of xsv ?

That's very surprising - - could you provide examples and the XSV output?

> 2) namespaces and schema location.
> 
> Is it possible to write a schema by default for a corresponding namespace
> 
> and avoiding to write explicitely the schema location ?
> 
> I have my namespace:http://www-clips.imag.fr/geta/services/dml
> 
> For the moment, I always have to indicate the schema location:
> 
> <include namespace="http://www-clips.imag.fr/geta/services/dml"
> 
> schemaLocation="dml.xsd" />
> 
> I would like to write a complete schema for this namespace and to let the
> schema validator
> 
> fetching it without indicating the schema location.
> 
> <include namespace="http://www-clips.imag.fr/geta/services/dml"/>
> 
> Do I have to name my schema file "dml" or "dml.xsd" or is there
> another way to indicate the validators to take by default this file
> dml.xsd for the corresponding namespace:
> 
> http://www-clips.imag.fr/geta/services/dml ?

If you put dml.xsd at the right place in your web server's filespace,
_and_ you have your server set up properly to supply .xsd files for
application/xml requests, then yes.  That's how
http://www.w3.org/2001/XMLSchema works.

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 Thursday, 12 April 2001 12:01:28 UTC