Imports and namespaces

Dear All,

I have some questions about using imports with the same namepace.

In the code below I have two imports, both files have the same namespace
inside.  I don´t want to import the container library because I'll use only
two elements.

Then, at "parsing time" some parser (XSV version: XSV 3.1-1 of 2007/12/11
16:20:05) I receive a message "
Attempt to load a schema document from
http://www.foo.com/schemas/Proyectos/THECOP/Core/tipoCodAdjudicacion.xsd
(source: import) for
http://www.foo2.com/THE-XML/schemas/Proyectos/THECOP/Core-v1, skipped, other
docs already loaded for this namespace:
http://www.foo.com/schemas/Proyectos/THECOP/Core/tipoNumResolucion.xsd"

It is clear the error from the parser, but the XML Schema language allows to
do that, isn’t it?

Any clue to solve this problem?

Cheers,

Cesar Ariza


<?xml version="1.0" encoding="ISO-8859-1" ?> 
- <xsd:schema elementFormDefault="qualified" id="adjudicacion"
targetNamespace="http://www.foo2.com/THE-XML/schemas/Proyectos/THECOP/Adquis
icion-v1" version="1.0" xmlns:dc="http://purl.org/dc/terms/"
xmlns:secadq="http://www.foo2.com/THE-XML/schemas/Proyectos/THECOP/Adquisici
on-v1"
xmlns:seccor="http://www.foo2.com/THE-XML/schemas/Proyectos/THECOP/Core-v1"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <xsd:include schemaLocation="tipoResolucionAdjudicacion.xsd" /> 
  <xsd:include schemaLocation="tipoCabeceraAdjudicacion.xsd" /> 
  <xsd:include schemaLocation="tipoLineaItemAdj.xsd" /> 
  <xsd:import
namespace="http://www.foo2.com/THE-XML/schemas/Proyectos/THECOP/Core-v1"
schemaLocation="../Core/tipoListaDocumentoAdjunto.xsd" /> 
  <xsd:import
namespace="http://www.foo2.com/THE-XML/schemas/Proyectos/THECOP/Core-v1"
schemaLocation="../Core/tipoListaParte.xsd" /> 
- <xsd:complexType name="tipoAdjudicacion">
- <xsd:annotation>
- <xsd:appinfo>
 
<dc:identifier>http://www.foo2.com/THE-XML/schemas/Proyectos/THECOP/Adquisic
ion-v1/tipoAdjudicacion</dc:identifier> 
  <dc:date>2008-01-30</dc:date> 
  <dc:description xml:lang="es">Es el acto mediante el cual se determinan a
los aceptantes y/o adjudicatarios, de un acto jurídico generador de
obligaciones, celebrado por una entidad estatal.</dc:description> 
  <dc:hasVersion>1.0</dc:hasVersion> 
  </xsd:appinfo>
  </xsd:annotation>
- <xsd:sequence>
  <xsd:element ref="secadq:resolucionAdjudicacion" /> 
  <xsd:element ref="secadq:cabeceraAdjudicacion" /> 
  <xsd:element ref="secadq:detalleAdjudicacion" /> 
  <xsd:element minOccurs="0" ref="seccor:documentosAdjuntos" /> 
  <xsd:element minOccurs="0" ref="seccor:proveedoresNoAdjudicados" /> 
  </xsd:sequence>
  </xsd:complexType>
  </xsd:schema>

Received on Tuesday, 24 June 2008 05:43:27 UTC