W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2005

Import

From: Robert Leif <rleif@rleif.com>
Date: 07 Dec 2005 17:15:48 -0700
To: <www-xml-schema-comments@w3.org>
Message-ID: <00ca01c5f7b5$27013920$6701a8c0@newport>
The creation of modular schemas can result in 3 repetitions of the same
information.

 

xmlns:dicom=file:///C:/CytometryML/schemas/dicom.xsd
<file:///C:\CytometryML\schemas\dicom.xsd> 

 

 

<import namespace="file:///C:/CytometryML/schemas/dicom.xsd"

     schemaLocation="file:///C:/CytometryML/schemas/dicom.xsd"/>

 

Since 6 or more schemas can have the same path, there is a very large
redundancy in writing the path. In the case of embedded systems or even
during development, a schema can exist locally on a disk drive and remotely
on a server. Moving the schema from one place to the other involves changing
all of the paths. Is there any way that the xml:base attribute could be used
with the prefixing statement and the import statements? Another approach
would be to define the prefix and use it as an alias for the namespace and
schemaLocation attributes.

Robert (Bob) Leif.
Received on Thursday, 8 December 2005 00:19:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:10 GMT