Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » nested import declaration
nested import declaration [message #598809] Tue, 17 October 2006 12:37
Sven Krause is currently offline Sven KrauseFriend
Messages: 64
Registered: July 2009
Member
This is a multi-part message in MIME format.
--------------080804050509030401010403
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Hi Ed,

you are stated that imports within schemas are not transitive. Do you
have a source for the statement?
We have currently (dicussion-) problems on interpreting a set of schema
files created (by another company resource) using xml spy. xml spy does
not complain about missing declarations for prefixed defined within
schema documents that is referenced by include.

Please see attached a scenario where a missing type is complained within
the eclipse-xsd, but accepted by xml spy, stylus studio and some more.

Sven



--------------080804050509030401010403
Content-Type: text/xml;
name="doc1.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="doc1.xsd"

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sample/base">
<xsd:simpleType name="base_Type">
<xsd:restriction base="xsd:string" />
</xsd:simpleType>
</xsd:schema>
--------------080804050509030401010403
Content-Type: text/xml;
name="doc2.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="doc2.xsd"

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sample/ext" xmlns:base="http://sample/base">
<xsd:import namespace="http://sample/base" schemaLocation="doc1.xsd" />
</xsd:schema>
--------------080804050509030401010403
Content-Type: text/xml;
name="doc3.xsd"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="doc3.xsd"

<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" targetNamespace="http://sample/ext" xmlns:base="http://sample/base">
<xsd:include schemaLocation="doc2.xsd" />
<xsd:simpleType name="ext_Type">
<xsd:restriction base="base:base_Type" />
</xsd:simpleType>
</xsd:schema>
--------------080804050509030401010403
Content-Type: message/rfc822;
name="Nachricht als Anhang"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="Nachricht als Anhang"

Path: utils.eclipse.org!news.eclipse.org!localhost!not-for-mail
From: Ed Merks <merks@ca.ibm.com>
Newsgroups: eclipse.technology.xsd
Subject: Re: How to load Include/Redefine/Import Namespaces?
Date: Tue, 12 Oct 2004 08:24:50 -0400
Organization: EclipseCorner
Message-ID: <ckgi4u$vda$1@eclipse.org>
References: <ckfa47$rgp$1@eclipse.org>
NNTP-Posting-Host: cpe000d60240bb6-cm400045887339.cpe.net.cable.rogers.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: eclipse.org 1097583582 32170 65.48.236.22 (12 Oct 2004 12:19:42 GMT)
X-Complaints-To: news@eclipse.org
NNTP-Posting-Date: Tue, 12 Oct 2004 12:19:42 +0000 (UTC)
User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913)
X-Accept-Language: en-us, en
In-Reply-To: <ckfa47$rgp$1@eclipse.org>
Xref: localhost eclipse.technology.xsd:1193

Anne,

Imports are not transitive, i.e., including a schema that contains an
import is not the same has having the import directly in the including
schema, so you likely need to add more direct imports.


Anne wrote:

>Hi folks,
>
>I have got three schema files, one of them includes another schema, while
>the another one import some other schema. However, when I load the main
>Schema the others seem not be visible or loaded. How do I make sure that
>the included/imporrtes Schemas are visible.
>
>Rgs
>Anne
>
>
>

--------------080804050509030401010403--
Previous Topic:Feature request: can XSDEcoreBuilder use EcorePackage.eINSTANCE.getEFactoryInstance() instead of
Next Topic:nested import declaration
Goto Forum:
  


Current Time: Thu Apr 25 08:07:09 GMT 2024

Powered by FUDForum. Page generated in 0.02444 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top