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

Re: XSV: pb with xml headers in schemas

From: Mathieu Mangeot Lerebours <Mathieu.Mangeot@imag.fr>
Date: Thu, 12 Apr 2001 18:48:51 +0200
Message-Id: <p0433010cb6fb8a06fe99@[129.88.32.195]>
To: ht@cogsci.ed.ac.uk (Henry S. Thompson)
Cc: xmlschema-dev@w3.org
>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?

I investigated more and found why xsv did not work with my xml headers
for the schemas:

I wrote standalone="yes" :
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

http://www-clips.imag.fr/geta/services/dml/popb.xml
http://www-clips.imag.fr/geta/services/dml/popb.xsd

But if I write standalone="no", everything is OK.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

http://www-clips.imag.fr/geta/services/dml/po.xml
http://www-clips.imag.fr/geta/services/dml/po.xsd


So maybe its a feature?

> >
>> 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.
>
I added a line for in the mime.types file:

application/xml		xml xsd

I will test it soon.

Thanks again.
-- 
Mathieu MANGEOT-LEREBOURS |  Phone : +33 4 76 51 43 80
GETA-CLIPS-IMAG  BP 53    |  Fax     : +33 4 76 51 44 05
F-38041 Grenoble cedex 9  |  E-mail: Mathieu.Mangeot@imag.fr
      http://www-clips.imag.fr/geta/mathieu.mangeot
Received on Thursday, 12 April 2001 12:49:02 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:20 GMT