W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2001

Using schema in files

From: Gary Robertson <gazrobertson@hotmail.com>
Date: Wed, 15 Aug 2001 14:10:59 +0100
To: "XML DOM mailing list" <www-dom@w3.org>
Message-ID: <OE13NjVuMhvqgStMVhE000097be@hotmail.com>
All schema examples everywhere I look point to the W3C site 
for the definition of the schema language e.g. 

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

That's fine for people who can be guaranteed to be online to the 
internet but I want to download the schema definition into a local 
file so it's always accessible to my customers e.g.

<xs:schema xmlns:xs="c:\myapp\XMLSchema" >
<xs:schema xmlns:xs="c:\myapp\XMLSchema.xsd" >
<xs:schema xmlns:xs="file://c:\myapp\XMLSchema" >
<xs:schema xmlns:xs="file://c:\myapp\XMLSchema.xsd" >
<xs:schema xmlns:xs="file:///c:\myapp\XMLSchema" >
<xs:schema xmlns:xs="file:///c:\myapp\XMLSchema.xsd" >

Am I, in theory allowed to use a file? Are _any_ of the above
correct forms?

I've tried all different types of syntax to use a filename but the Microsoft 
XML parser 4.0 preview July 2001 always chokes. The error happens 
when I use XMLSchemaCache40's add method on a schema file that tries 
to refer to a file in the xmlns attribute using, for example, any or the above. 
No problem occurs when I use the original http method.

Any clues anybody? Has anybody managed to use a schema 
in a local files rather than a website? With the Microsoft 
component? What files should be downloaded to use the W3C schema 
definition?

Gaz Robertson
Received on Wednesday, 15 August 2001 09:19:15 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:49 GMT