Import

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 UTC