Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » nested import declaration
nested import declaration [message #69913] Tue, 17 October 2006 08:37 Go to next message
Sven Krause is currently offline Sven Krause
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--
Re: nested import declaration [message #69935 is a reply to message #69913] Tue, 17 October 2006 08:51 Go to previous messageGo to next message
Eclipse User
Originally posted by: merks.ca.ibm.com

This is a multi-part message in MIME format.
--------------020706080709060109000903
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Sven,

This definition in the XML Schema spec is relevant:

[Definition:] Whenever the word *resolve* in any form is used in
this chapter in connection with a
Re: nested import declaration [message #69955 is a reply to message #69935] Tue, 17 October 2006 08:53 Go to previous message
Sven Krause is currently offline Sven Krause
Messages: 64
Registered: July 2009
Member
Thanks for the quick answer.

Sven

Ed Merks schrieb:
Re: nested import declaration [message #598819 is a reply to message #69913] Tue, 17 October 2006 08:51 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25744
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------020706080709060109000903
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Sven,

This definition in the XML Schema spec is relevant:

[Definition:] Whenever the word *resolve* in any form is used in
this chapter in connection with a
Re: nested import declaration [message #598829 is a reply to message #69935] Tue, 17 October 2006 08:53 Go to previous message
Sven Krause is currently offline Sven Krause
Messages: 64
Registered: July 2009
Member
Thanks for the quick answer.

Sven

Ed Merks schrieb:
Previous Topic:nested import declaration
Next Topic:change parser
Goto Forum:
  


Current Time: Thu Apr 17 17:40:59 EDT 2014

Powered by FUDForum. Page generated in 0.03265 seconds