Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » xs:include and xs:import
xs:include and xs:import [message #22938] Wed, 21 May 2003 17:38 Go to next message
Eclipse UserFriend
Originally posted by: paechoi.earthlink.net

Is Eclipse/XSD supporting 'xs:include' and 'xs:import'?

I have a couple of diagnostic messages as follows:

At line #12(5), XSD: The location
'http://dev1.paechoi.org/xmlschemas/test/commonlogin.xsd' has not been
resolved; Node = [xs:import]
At line #19(5), XSD: The location
'http://www.w3.org/2003/03/wsdl/wsdl12.xsd' has not been resolved; Node =
[xs:include]

Any comments?


Pae
Re: xs:include and xs:import [message #22982 is a reply to message #22938] Wed, 21 May 2003 17:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: paechoi.earthlink.net

Also, shouldn't be the 'xs:include' proceeded before the 'xs:import' take
place? And I was hoping to see some diagnostice message related to
that, but not seeing it.

Any comments?


Pae


"Pae Choi" <paechoi@earthlink.net> wrote in message
news:bagdhf$tla$1@rogue.oti.com...
> Is Eclipse/XSD supporting 'xs:include' and 'xs:import'?
>
> I have a couple of diagnostic messages as follows:
>
> At line #12(5), XSD: The location
> 'http://dev1.paechoi.org/xmlschemas/test/commonlogin.xsd' has not been
> resolved; Node = [xs:import]
> At line #19(5), XSD: The location
> 'http://www.w3.org/2003/03/wsdl/wsdl12.xsd' has not been resolved; Node =
> [xs:include]
>
> Any comments?
>
>
> Pae
>
>
>
Re: xs:include and xs:import [message #23025 is a reply to message #22938] Wed, 21 May 2003 22:03 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Pae,

A schema needs to be contained by a Resource that is contained by a
ResourceSet in order to resolve imports. So if you are creating a schema
from scratch, you need to do something like this:

ResourceSet resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.createResource(uri);
resource.getContents().add(xsdSchema);
xsdSchema.validate();

The additional Resources will be loaded into the ResourceSet to contain the
resolved schemas. You can validate those as well. Have a look at
XSDMainTest's support for -validate...

Pae Choi wrote:

> Is Eclipse/XSD supporting 'xs:include' and 'xs:import'?
>
> I have a couple of diagnostic messages as follows:
>
> At line #12(5), XSD: The location
> 'http://dev1.paechoi.org/xmlschemas/test/commonlogin.xsd' has not been
> resolved; Node = [xs:import]
> At line #19(5), XSD: The location
> 'http://www.w3.org/2003/03/wsdl/wsdl12.xsd' has not been resolved; Node =
> [xs:include]
>
> Any comments?
>
> Pae
Re: xs:include and xs:import [message #23067 is a reply to message #22982] Wed, 21 May 2003 22:05 Go to previous message
Eclipse UserFriend
Originally posted by: merks.ca.ibm.com

Pae,

There's no constraint that includes must precede imports.

Pae Choi wrote:

> Also, shouldn't be the 'xs:include' proceeded before the 'xs:import' take
> place? And I was hoping to see some diagnostice message related to
> that, but not seeing it.
>
> Any comments?
>
> Pae
>
> "Pae Choi" <paechoi@earthlink.net> wrote in message
> news:bagdhf$tla$1@rogue.oti.com...
> > Is Eclipse/XSD supporting 'xs:include' and 'xs:import'?
> >
> > I have a couple of diagnostic messages as follows:
> >
> > At line #12(5), XSD: The location
> > 'http://dev1.paechoi.org/xmlschemas/test/commonlogin.xsd' has not been
> > resolved; Node = [xs:import]
> > At line #19(5), XSD: The location
> > 'http://www.w3.org/2003/03/wsdl/wsdl12.xsd' has not been resolved; Node =
> > [xs:include]
> >
> > Any comments?
> >
> >
> > Pae
> >
> >
> >
Re: xs:include and xs:import [message #572379 is a reply to message #22938] Wed, 21 May 2003 17:48 Go to previous message
Eclipse UserFriend
Originally posted by: paechoi.earthlink.net

Also, shouldn't be the 'xs:include' proceeded before the 'xs:import' take
place? And I was hoping to see some diagnostice message related to
that, but not seeing it.

Any comments?


Pae


"Pae Choi" <paechoi@earthlink.net> wrote in message
news:bagdhf$tla$1@rogue.oti.com...
> Is Eclipse/XSD supporting 'xs:include' and 'xs:import'?
>
> I have a couple of diagnostic messages as follows:
>
> At line #12(5), XSD: The location
> 'http://dev1.paechoi.org/xmlschemas/test/commonlogin.xsd' has not been
> resolved; Node = [xs:import]
> At line #19(5), XSD: The location
> 'http://www.w3.org/2003/03/wsdl/wsdl12.xsd' has not been resolved; Node =
> [xs:include]
>
> Any comments?
>
>
> Pae
>
>
>
Re: xs:include and xs:import [message #572423 is a reply to message #22938] Wed, 21 May 2003 22:03 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31346
Registered: July 2009
Senior Member
Pae,

A schema needs to be contained by a Resource that is contained by a
ResourceSet in order to resolve imports. So if you are creating a schema
from scratch, you need to do something like this:

ResourceSet resourceSet = new ResourceSetImpl();
Resource resource = resourceSet.createResource(uri);
resource.getContents().add(xsdSchema);
xsdSchema.validate();

The additional Resources will be loaded into the ResourceSet to contain the
resolved schemas. You can validate those as well. Have a look at
XSDMainTest's support for -validate...

Pae Choi wrote:

> Is Eclipse/XSD supporting 'xs:include' and 'xs:import'?
>
> I have a couple of diagnostic messages as follows:
>
> At line #12(5), XSD: The location
> 'http://dev1.paechoi.org/xmlschemas/test/commonlogin.xsd' has not been
> resolved; Node = [xs:import]
> At line #19(5), XSD: The location
> 'http://www.w3.org/2003/03/wsdl/wsdl12.xsd' has not been resolved; Node =
> [xs:include]
>
> Any comments?
>
> Pae


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: xs:include and xs:import [message #572484 is a reply to message #22982] Wed, 21 May 2003 22:05 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 31346
Registered: July 2009
Senior Member
Pae,

There's no constraint that includes must precede imports.

Pae Choi wrote:

> Also, shouldn't be the 'xs:include' proceeded before the 'xs:import' take
> place? And I was hoping to see some diagnostice message related to
> that, but not seeing it.
>
> Any comments?
>
> Pae
>
> "Pae Choi" <paechoi@earthlink.net> wrote in message
> news:bagdhf$tla$1@rogue.oti.com...
> > Is Eclipse/XSD supporting 'xs:include' and 'xs:import'?
> >
> > I have a couple of diagnostic messages as follows:
> >
> > At line #12(5), XSD: The location
> > 'http://dev1.paechoi.org/xmlschemas/test/commonlogin.xsd' has not been
> > resolved; Node = [xs:import]
> > At line #19(5), XSD: The location
> > 'http://www.w3.org/2003/03/wsdl/wsdl12.xsd' has not been resolved; Node =
> > [xs:include]
> >
> > Any comments?
> >
> >
> > Pae
> >
> >
> >


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:xs:include and xs:import
Next Topic:How to create a local simpleContentComplexType ?
Goto Forum:
  


Current Time: Tue Aug 04 17:18:29 GMT 2020

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

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

Back to the top