Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: Question on XSD elements in groups >Thread Next - RE: Imports and namespaces Imports and namespacesTo: <xmlschema-dev@--.---> Date: 6/23/2008 6:55:00 PM 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=B4t 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=92t 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/A= dquis icion-v1" version="1.0" xmlns:dc="http://purl.org/dc/terms/" xmlns:secadq="http://www.foo2.com/THE-XML/schemas/Proyectos/THECOP/Adqu= isici 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/Adqui= sic 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=EDdico 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> From boris@c... Tue Jun 24 15:20:46 2008 Received: from [128.30.52.63] (helo=bart.w3.org) by frink.w3.org with esmtp (Exim 4.63) (enve | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
