|
|
|
Re: xs:include and xs:import [message #23067 is a reply to message #22982] |
Wed, 21 May 2003 18:05  |
Eclipse User |
|
|
|
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 #572423 is a reply to message #22938] |
Wed, 21 May 2003 18:03  |
Eclipse User |
|
|
|
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
|
|
|
|
Powered by
FUDForum. Page generated in 0.04140 seconds