representation of empty entensions [message #13506] |
Wed, 05 March 2003 11:03  |
Eclipse User |
|
|
|
Originally posted by: Michael.Hartmeier.softwareag.com
I noticed that eclipse and xerces (2.1) create different representations
for the following Schema:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="child">
<xs:sequence>
<xs:element name="foo" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="parent">
<xs:complexContent>
<xs:extension base="child"/>
</xs:complexContent>
</xs:complexType>
</xs:schema>
Eclipse represents the type "parent" like this:
type "parent"
particle (1,1)
modelgroup
particle (*)
modelgroup (the sequence)
particle (1,1)
element "foo"
And particle (*) is referenced by type "child".
In contrast, Xerces represents type "parent" like this:
type "parent"
particle (*)
modelgroup (the sequence)
particle (1,1)
element "foo"
And particle (*) is referenced by type "child".
In xerces, both types share the same particle whereas eclipse creates a
new top-level particle for type parent.
I don't understand the XSD spec at this point, does it specify a correct
representation of can you choose wether to introduce a particle for empty
extension?
Michael
I also notices the the DOM element for parent's particle is null, is this
intended?
|
|
|
|
|
Re: representation of empty entensions [message #13761 is a reply to message #13740] |
Wed, 12 March 2003 05:55  |
Eclipse User |
|
|
|
Originally posted by: Michael.Hartmeier.softwareag.com
Thank you. The speed you fix bug is quite impressive!
Michael
Ed Merks wrote:
> Michael,
> This will be fixed in the next drop of version 1.0.2; it's not fixed yet in
> the current drop of version 1.0.2.
> Michael Hartmeier wrote:
> > I noticed that eclipse and xerces (2.1) create different representations
> > for the following Schema:
> >
> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> > <xs:complexType name="child">
> > <xs:sequence>
> > <xs:element name="foo" type="xs:string"/>
> > </xs:sequence>
> > </xs:complexType>
> > <xs:complexType name="parent">
> > <xs:complexContent>
> > <xs:extension base="child"/>
> > </xs:complexContent>
> > </xs:complexType>
> > </xs:schema>
> >
> > Eclipse represents the type "parent" like this:
> > type "parent"
> > particle (1,1)
> > modelgroup
> > particle (*)
> > modelgroup (the sequence)
> > particle (1,1)
> > element "foo"
> > And particle (*) is referenced by type "child".
> >
> > In contrast, Xerces represents type "parent" like this:
> > type "parent"
> > particle (*)
> > modelgroup (the sequence)
> > particle (1,1)
> > element "foo"
> > And particle (*) is referenced by type "child".
> >
> > In xerces, both types share the same particle whereas eclipse creates a
> > new top-level particle for type parent.
> >
> > I don't understand the XSD spec at this point, does it specify a correct
> > representation of can you choose wether to introduce a particle for empty
> > extension?
> >
> > Michael
> >
> > I also notices the the DOM element for parent's particle is null, is this
> > intended?
|
|
|
Re: representation of empty entensions [message #565895 is a reply to message #13506] |
Wed, 05 March 2003 13:02  |
Eclipse User |
|
|
|
Michael,
You ask such good questions! The XSD model definitely has this wrong; the
empty particles should be removed and the particle tree should reflect that.
Please consider opening a bugzilla defect to track this.
The root particle is "synthetic" so it doesn't correspond to any DOM element
and the value is therefore null.
Michael Hartmeier wrote:
> I noticed that eclipse and xerces (2.1) create different representations
> for the following Schema:
>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:complexType name="child">
> <xs:sequence>
> <xs:element name="foo" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="parent">
> <xs:complexContent>
> <xs:extension base="child"/>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
>
> Eclipse represents the type "parent" like this:
> type "parent"
> particle (1,1)
> modelgroup
> particle (*)
> modelgroup (the sequence)
> particle (1,1)
> element "foo"
> And particle (*) is referenced by type "child".
>
> In contrast, Xerces represents type "parent" like this:
> type "parent"
> particle (*)
> modelgroup (the sequence)
> particle (1,1)
> element "foo"
> And particle (*) is referenced by type "child".
>
> In xerces, both types share the same particle whereas eclipse creates a
> new top-level particle for type parent.
>
> I don't understand the XSD spec at this point, does it specify a correct
> representation of can you choose wether to introduce a particle for empty
> extension?
>
> Michael
>
> I also notices the the DOM element for parent's particle is null, is this
> intended?
|
|
|
Re: representation of empty entensions [message #566238 is a reply to message #13506] |
Tue, 11 March 2003 11:30  |
Eclipse User |
|
|
|
Michael,
This will be fixed in the next drop of version 1.0.2; it's not fixed yet in
the current drop of version 1.0.2.
Michael Hartmeier wrote:
> I noticed that eclipse and xerces (2.1) create different representations
> for the following Schema:
>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:complexType name="child">
> <xs:sequence>
> <xs:element name="foo" type="xs:string"/>
> </xs:sequence>
> </xs:complexType>
> <xs:complexType name="parent">
> <xs:complexContent>
> <xs:extension base="child"/>
> </xs:complexContent>
> </xs:complexType>
> </xs:schema>
>
> Eclipse represents the type "parent" like this:
> type "parent"
> particle (1,1)
> modelgroup
> particle (*)
> modelgroup (the sequence)
> particle (1,1)
> element "foo"
> And particle (*) is referenced by type "child".
>
> In contrast, Xerces represents type "parent" like this:
> type "parent"
> particle (*)
> modelgroup (the sequence)
> particle (1,1)
> element "foo"
> And particle (*) is referenced by type "child".
>
> In xerces, both types share the same particle whereas eclipse creates a
> new top-level particle for type parent.
>
> I don't understand the XSD spec at this point, does it specify a correct
> representation of can you choose wether to introduce a particle for empty
> extension?
>
> Michael
>
> I also notices the the DOM element for parent's particle is null, is this
> intended?
|
|
|
Re: representation of empty entensions [message #566281 is a reply to message #13740] |
Wed, 12 March 2003 05:55  |
Eclipse User |
|
|
|
Thank you. The speed you fix bug is quite impressive!
Michael
Ed Merks wrote:
> Michael,
> This will be fixed in the next drop of version 1.0.2; it's not fixed yet in
> the current drop of version 1.0.2.
> Michael Hartmeier wrote:
> > I noticed that eclipse and xerces (2.1) create different representations
> > for the following Schema:
> >
> > <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> > <xs:complexType name="child">
> > <xs:sequence>
> > <xs:element name="foo" type="xs:string"/>
> > </xs:sequence>
> > </xs:complexType>
> > <xs:complexType name="parent">
> > <xs:complexContent>
> > <xs:extension base="child"/>
> > </xs:complexContent>
> > </xs:complexType>
> > </xs:schema>
> >
> > Eclipse represents the type "parent" like this:
> > type "parent"
> > particle (1,1)
> > modelgroup
> > particle (*)
> > modelgroup (the sequence)
> > particle (1,1)
> > element "foo"
> > And particle (*) is referenced by type "child".
> >
> > In contrast, Xerces represents type "parent" like this:
> > type "parent"
> > particle (*)
> > modelgroup (the sequence)
> > particle (1,1)
> > element "foo"
> > And particle (*) is referenced by type "child".
> >
> > In xerces, both types share the same particle whereas eclipse creates a
> > new top-level particle for type parent.
> >
> > I don't understand the XSD spec at this point, does it specify a correct
> > representation of can you choose wether to introduce a particle for empty
> > extension?
> >
> > Michael
> >
> > I also notices the the DOM element for parent's particle is null, is this
> > intended?
|
|
|
Powered by
FUDForum. Page generated in 0.04322 seconds