users@jaxb.java.net

Re: Polymorphism problems

From: <dev_at_samizdatdigital.org>
Date: Tue, 29 Jun 2004 08:18:37 -0700

On Jun 29, 2004, at 6:36 AM, Andrew Ferguson wrote:

> also I'm a little confused by the schema snippet you posted - the XML
> Primer says you must duplicate the content from the base in the derived
> definition (unlike how java inheritance is declared) - which from my
> reading would mean that Employee would need to declare both "name" and
> "title". although this is all new to me (but I would like to
> understand..)

it's just a minor point, bu just to clarify, mr. munz uses
<xsd:complexContent><xsd:extension>..., which effectively does what the
Primer says -- it's an implicit inclusion of whatever the base is as
specified in the <xsd:extension>.

jon


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net