Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSchema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/39105/#msg_39105
Originally posted by: cipher8000.yahoo.com
I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2. foo.xsd.
boo.xsd imports "foo" schema. foo.xsd is invalid because i used
type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't populate
any diagnostic error messages. But if i validate foo.xsd seperately, i get
diagnostic error messages for unresolved type "xsd:aaaa"
here is the foo.xsd
<xsd:schema targetNamespace="http://foo.com"
xmlns="http://foo.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:complexType name="fooElementType">
<xsd:sequence>
<xsd:element name="end" type="xsd:aaaa"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
thanks
-muruga]]>2004-03-20T00:08:08-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/584332/#msg_584332
Originally posted by: cipher8000.yahoo.com
I tried the latest build Build I20040308163 also. It behaves same.
thanks
-muruga
"Muruga Chinnananchi" <cipher8000@yahoo.com> wrote in message
news:c3g1oj$5i6$1@eclipse.org...
> I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2. foo.xsd.
>
> boo.xsd imports "foo" schema. foo.xsd is invalid because i used
> type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't populate
> any diagnostic error messages. But if i validate foo.xsd seperately, i get
> diagnostic error messages for unresolved type "xsd:aaaa"
>
> this combination used to work in previous build.
>
> here is the boo.xsd:
> <schema attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> xmlns="http://www.w3.org/2001/XMLSchema" xmlns:foo="http://foo.com">
> <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> <element name="fooElement" type="foo:fooElementType"/>
> </schema>
>
> here is the foo.xsd
> <xsd:schema targetNamespace="http://foo.com"
> xmlns="http://foo.com"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
> <xsd:complexType name="fooElementType">
> <xsd:sequence>
> <xsd:element name="end" type="xsd:aaaa"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
>
> thanks
> -muruga
>
>]]>2004-03-20T00:28:44-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/39136/#msg_39136
Originally posted by: cipher8000.yahoo.com
I tried the latest build Build I20040308163 also. It behaves same.
thanks
-muruga
"Muruga Chinnananchi" <cipher8000@yahoo.com> wrote in message
news:c3g1oj$5i6$1@eclipse.org...
> I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2. foo.xsd.
>
> boo.xsd imports "foo" schema. foo.xsd is invalid because i used
> type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't populate
> any diagnostic error messages. But if i validate foo.xsd seperately, i get
> diagnostic error messages for unresolved type "xsd:aaaa"
>
> this combination used to work in previous build.
>
> here is the boo.xsd:
> <schema attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> xmlns="http://www.w3.org/2001/XMLSchema" xmlns:foo="http://foo.com">
> <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> <element name="fooElement" type="foo:fooElementType"/>
> </schema>
>
> here is the foo.xsd
> <xsd:schema targetNamespace="http://foo.com"
> xmlns="http://foo.com"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
> <xsd:complexType name="fooElementType">
> <xsd:sequence>
> <xsd:element name="end" type="xsd:aaaa"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
>
> thanks
> -muruga
>
>]]>2004-03-20T00:28:44-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/584348/#msg_584348
You have to collect diagnostics from each schema resource; it's always worked
this way. Have a look at how the XSDMainTest supports -validate by walking
each resource.
Muruga Chinnananchi wrote:
> I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2. foo.xsd.
>
> boo.xsd imports "foo" schema. foo.xsd is invalid because i used
> type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't populate
> any diagnostic error messages. But if i validate foo.xsd seperately, i get
> diagnostic error messages for unresolved type "xsd:aaaa"
>
> this combination used to work in previous build.
>
> here is the boo.xsd:
> <schema attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> xmlns="http://www.w3.org/2001/XMLSchema" xmlns:foo="http://foo.com">
> <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> <element name="fooElement" type="foo:fooElementType"/>
> </schema>
>
> here is the foo.xsd
> <xsd:schema targetNamespace="http://foo.com"
> xmlns="http://foo.com"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
> <xsd:complexType name="fooElementType">
> <xsd:sequence>
> <xsd:element name="end" type="xsd:aaaa"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
>
> thanks
> -muruga]]>Ed Merks2004-03-22T11:43:38-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/39167/#msg_39167
Originally posted by: merks.ca.ibm.com
Muruga,
You have to collect diagnostics from each schema resource; it's always worked
this way. Have a look at how the XSDMainTest supports -validate by walking
each resource.
Muruga Chinnananchi wrote:
> I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2. foo.xsd.
>
> boo.xsd imports "foo" schema. foo.xsd is invalid because i used
> type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't populate
> any diagnostic error messages. But if i validate foo.xsd seperately, i get
> diagnostic error messages for unresolved type "xsd:aaaa"
>
> this combination used to work in previous build.
>
> here is the boo.xsd:
> <schema attributeFormDefault="qualified" elementFormDefault="qualified"
> targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> xmlns="http://www.w3.org/2001/XMLSchema" xmlns:foo="http://foo.com">
> <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> <element name="fooElement" type="foo:fooElementType"/>
> </schema>
>
> here is the foo.xsd
> <xsd:schema targetNamespace="http://foo.com"
> xmlns="http://foo.com"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified">
> <xsd:complexType name="fooElementType">
> <xsd:sequence>
> <xsd:element name="end" type="xsd:aaaa"/>
> </xsd:sequence>
> </xsd:complexType>
> </xsd:schema>
>
> thanks
> -muruga]]>2004-03-22T11:43:38-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/39198/#msg_39198
Originally posted by: cipher8000.yahoo.com
Hi Ed,
Thanks very much. It works now. I traverse all the imports and try to
validate them seperately.
I have another problem. I have a schema eoli.xsd, XMLSpy validates with no
error. But eclipse xsd throws these error when i tried to validate. I am
attaching this schema (eoli.xsd). Looks like this is valid schema.
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:405ED169.43E4B2DB@ca.ibm.com...
> Muruga,
>
> You have to collect diagnostics from each schema resource; it's always
worked
> this way. Have a look at how the XSDMainTest supports -validate by
walking
> each resource.
>
>
> Muruga Chinnananchi wrote:
>
> > I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2.
foo.xsd.
> >
> > boo.xsd imports "foo" schema. foo.xsd is invalid because i used
> > type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't
populate
> > any diagnostic error messages. But if i validate foo.xsd seperately, i
get
> > diagnostic error messages for unresolved type "xsd:aaaa"
> >
> > this combination used to work in previous build.
> >
> > here is the boo.xsd:
> > <schema attributeFormDefault="qualified" elementFormDefault="qualified"
> > targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> > xmlns="http://www.w3.org/2001/XMLSchema" xmlns:foo="http://foo.com">
> > <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> > <element name="fooElement" type="foo:fooElementType"/>
> > </schema>
> >
> > here is the foo.xsd
> > <xsd:schema targetNamespace="http://foo.com"
> > xmlns="http://foo.com"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > elementFormDefault="qualified">
> > <xsd:complexType name="fooElementType">
> > <xsd:sequence>
> > <xsd:element name="end" type="xsd:aaaa"/>
> > </xsd:sequence>
> > </xsd:complexType>
> > </xsd:schema>
> >
> > thanks
> > -muruga
>]]>2004-03-23T00:07:50-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/584366/#msg_584366
Originally posted by: cipher8000.yahoo.com
Hi Ed,
Thanks very much. It works now. I traverse all the imports and try to
validate them seperately.
I have another problem. I have a schema eoli.xsd, XMLSpy validates with no
error. But eclipse xsd throws these error when i tried to validate. I am
attaching this schema (eoli.xsd). Looks like this is valid schema.
"Ed Merks" <merks@ca.ibm.com> wrote in message
news:405ED169.43E4B2DB@ca.ibm.com...
> Muruga,
>
> You have to collect diagnostics from each schema resource; it's always
worked
> this way. Have a look at how the XSDMainTest supports -validate by
walking
> each resource.
>
>
> Muruga Chinnananchi wrote:
>
> > I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2.
foo.xsd.
> >
> > boo.xsd imports "foo" schema. foo.xsd is invalid because i used
> > type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't
populate
> > any diagnostic error messages. But if i validate foo.xsd seperately, i
get
> > diagnostic error messages for unresolved type "xsd:aaaa"
> >
> > this combination used to work in previous build.
> >
> > here is the boo.xsd:
> > <schema attributeFormDefault="qualified" elementFormDefault="qualified"
> > targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> > xmlns="http://www.w3.org/2001/XMLSchema" xmlns:foo="http://foo.com">
> > <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> > <element name="fooElement" type="foo:fooElementType"/>
> > </schema>
> >
> > here is the foo.xsd
> > <xsd:schema targetNamespace="http://foo.com"
> > xmlns="http://foo.com"
> > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > elementFormDefault="qualified">
> > <xsd:complexType name="fooElementType">
> > <xsd:sequence>
> > <xsd:element name="end" type="xsd:aaaa"/>
> > </xsd:sequence>
> > </xsd:complexType>
> > </xsd:schema>
> >
> > thanks
> > -muruga
>]]>2004-03-23T00:07:50-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/39228/#msg_39228
Originally posted by: cipher8000.yahoo.com
> get
> > > diagnostic error messages for unresolved type "xsd:aaaa"
> > >
> > > this combination used to work in previous build.
> > >
> > > here is the boo.xsd:
> > > <schema attributeFormDefault="qualified"
elementFormDefault="qualified"
> > > targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> > > xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:foo="http://foo.com">
> > > <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> > > <element name="fooElement" type="foo:fooElementType"/>
> > > </schema>
> > >
> > > here is the foo.xsd
> > > <xsd:schema targetNamespace="http://foo.com"
> > > xmlns="http://foo.com"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > elementFormDefault="qualified">
> > > <xsd:complexType name="fooElementType">
> > > <xsd:sequence>
> > > <xsd:element name="end" type="xsd:aaaa"/>
> > > </xsd:sequence>
> > > </xsd:complexType>
> > > </xsd:schema>
> > >
> > > thanks
> > > -muruga
> >
>
>
]]>2004-03-23T00:09:48-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/584377/#msg_584377
Originally posted by: cipher8000.yahoo.com
> get
> > > diagnostic error messages for unresolved type "xsd:aaaa"
> > >
> > > this combination used to work in previous build.
> > >
> > > here is the boo.xsd:
> > > <schema attributeFormDefault="qualified"
elementFormDefault="qualified"
> > > targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> > > xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:foo="http://foo.com">
> > > <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> > > <element name="fooElement" type="foo:fooElementType"/>
> > > </schema>
> > >
> > > here is the foo.xsd
> > > <xsd:schema targetNamespace="http://foo.com"
> > > xmlns="http://foo.com"
> > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > elementFormDefault="qualified">
> > > <xsd:complexType name="fooElementType">
> > > <xsd:sequence>
> > > <xsd:element name="end" type="xsd:aaaa"/>
> > > </xsd:sequence>
> > > </xsd:complexType>
> > > </xsd:schema>
> > >
> > > thanks
> > > -muruga
> >
>
>
]]>2004-03-23T00:09:48-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/39259/#msg_39259
Originally posted by: merks.ca.ibm.com
Muruga,
These all appear to be legitimate errors that XMLSpy overlooked.
Muruga Chinnananchi wrote:
> oops i forgot to attach that schema file.
>
> thanks
> -muruga
>
> "Muruga Chinnananchi" <cipher8000@yahoo.com> wrote in message
> news:c3nurp$r8$1@eclipse.org...
> > Hi Ed,
> >
> > Thanks very much. It works now. I traverse all the imports and try to
> > validate them seperately.
> >
> > I have another problem. I have a schema eoli.xsd, XMLSpy validates with no
> > error. But eclipse xsd throws these error when i tried to validate. I am
> > attaching this schema (eoli.xsd). Looks like this is valid schema.
> >
> > Error at line 374, in
> > "file:////c:/customer/spacebel/HelloWorld/services/eoli.xsd". XSD: The
> type
> > of element 'http://earth.esa.int/XML/eoli#geoEle' must derive from
> > 'http://earth.esa.int/XML/eoli#geoEle_._type'
> > Error at line 401, in
> > "file:////c:/customer/spacebel/HelloWorld/services/eoli.xsd". XSD: The
> type
> > of element 'http://earth.esa.int/XML/eoli#tempEle' must derive from
> > 'http://earth.esa.int/XML/eoli#EX_TemporalExtendType'
> > Error at line 370, in
> > "file:////c:/customer/spacebel/HelloWorld/services/eoli.xsd". XSD: The
> > restricted content type must accept a subset of the content accepted by
> the
> > base type
> > Error at line 791, in
> > "file:////c:/customer/spacebel/HelloWorld/services/eoli.xsd". XSD: The
> > restricted content type must accept a subset of the content accepted by
> the
> > base type
> >
> > thanks,
> > -muruga
> >
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:405ED169.43E4B2DB@ca.ibm.com...
> > > Muruga,
> > >
> > > You have to collect diagnostics from each schema resource; it's always
> > worked
> > > this way. Have a look at how the XSDMainTest supports -validate by
> > walking
> > > each resource.
> > >
> > >
> > > Muruga Chinnananchi wrote:
> > >
> > > > I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2.
> > foo.xsd.
> > > >
> > > > boo.xsd imports "foo" schema. foo.xsd is invalid because i used
> > > > type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't
> > populate
> > > > any diagnostic error messages. But if i validate foo.xsd seperately, i
>
> > get
> > > > diagnostic error messages for unresolved type "xsd:aaaa"
> > > >
> > > > this combination used to work in previous build.
> > > >
> > > > here is the boo.xsd:
> > > > <schema attributeFormDefault="qualified"
> elementFormDefault="qualified"
> > > > targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> > > > xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:foo="http://foo.com">
> > > > <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> > > > <element name="fooElement" type="foo:fooElementType"/>
> > > > </schema>
> > > >
> > > > here is the foo.xsd
> > > > <xsd:schema targetNamespace="http://foo.com"
> > > > xmlns="http://foo.com"
> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > elementFormDefault="qualified">
> > > > <xsd:complexType name="fooElementType">
> > > > <xsd:sequence>
> > > > <xsd:element name="end" type="xsd:aaaa"/>
> > > > </xsd:sequence>
> > > > </xsd:complexType>
> > > > </xsd:schema>
> > > >
> > > > thanks
> > > > -muruga
> > >
> >
> >
>
> Name: eoli.xsd
> eoli.xsd Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode]]>2004-03-23T11:11:36-00:00Re: Schema Validation Problem
https://www.eclipse.org/forums/index.php/mv/msg/12501/584394/#msg_584394
These all appear to be legitimate errors that XMLSpy overlooked.
Muruga Chinnananchi wrote:
> oops i forgot to attach that schema file.
>
> thanks
> -muruga
>
> "Muruga Chinnananchi" <cipher8000@yahoo.com> wrote in message
> news:c3nurp$r8$1@eclipse.org...
> > Hi Ed,
> >
> > Thanks very much. It works now. I traverse all the imports and try to
> > validate them seperately.
> >
> > I have another problem. I have a schema eoli.xsd, XMLSpy validates with no
> > error. But eclipse xsd throws these error when i tried to validate. I am
> > attaching this schema (eoli.xsd). Looks like this is valid schema.
> >
> > Error at line 374, in
> > "file:////c:/customer/spacebel/HelloWorld/services/eoli.xsd". XSD: The
> type
> > of element 'http://earth.esa.int/XML/eoli#geoEle' must derive from
> > 'http://earth.esa.int/XML/eoli#geoEle_._type'
> > Error at line 401, in
> > "file:////c:/customer/spacebel/HelloWorld/services/eoli.xsd". XSD: The
> type
> > of element 'http://earth.esa.int/XML/eoli#tempEle' must derive from
> > 'http://earth.esa.int/XML/eoli#EX_TemporalExtendType'
> > Error at line 370, in
> > "file:////c:/customer/spacebel/HelloWorld/services/eoli.xsd". XSD: The
> > restricted content type must accept a subset of the content accepted by
> the
> > base type
> > Error at line 791, in
> > "file:////c:/customer/spacebel/HelloWorld/services/eoli.xsd". XSD: The
> > restricted content type must accept a subset of the content accepted by
> the
> > base type
> >
> > thanks,
> > -muruga
> >
> >
> > "Ed Merks" <merks@ca.ibm.com> wrote in message
> > news:405ED169.43E4B2DB@ca.ibm.com...
> > > Muruga,
> > >
> > > You have to collect diagnostics from each schema resource; it's always
> > worked
> > > this way. Have a look at how the XSDMainTest supports -validate by
> > walking
> > > each resource.
> > >
> > >
> > > Muruga Chinnananchi wrote:
> > >
> > > > I am using 20040127_1738SL build. I have two schemas 1.boo.xsd 2.
> > foo.xsd.
> > > >
> > > > boo.xsd imports "foo" schema. foo.xsd is invalid because i used
> > > > type="xsd:aaaa". When i validate boo.xsd, the validate() doesn't
> > populate
> > > > any diagnostic error messages. But if i validate foo.xsd seperately, i
>
> > get
> > > > diagnostic error messages for unresolved type "xsd:aaaa"
> > > >
> > > > this combination used to work in previous build.
> > > >
> > > > here is the boo.xsd:
> > > > <schema attributeFormDefault="qualified"
> elementFormDefault="qualified"
> > > > targetNamespace="http://schemas.xmlsoap.org/wsdl/"
> > > > xmlns="http://www.w3.org/2001/XMLSchema"
> xmlns:foo="http://foo.com">
> > > > <import namespace="http://foo.com" schemaLocation="foo.xsd"/>
> > > > <element name="fooElement" type="foo:fooElementType"/>
> > > > </schema>
> > > >
> > > > here is the foo.xsd
> > > > <xsd:schema targetNamespace="http://foo.com"
> > > > xmlns="http://foo.com"
> > > > xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> > > > elementFormDefault="qualified">
> > > > <xsd:complexType name="fooElementType">
> > > > <xsd:sequence>
> > > > <xsd:element name="end" type="xsd:aaaa"/>
> > > > </xsd:sequence>
> > > > </xsd:complexType>
> > > > </xsd:schema>
> > > >
> > > > thanks
> > > > -muruga
> > >
> >
> >
>
> Name: eoli.xsd
> eoli.xsd Type: unspecified type (application/octet-stream)
> Encoding: x-uuencode]]>Ed Merks2004-03-23T11:11:36-00:00