users@jaxb.java.net

Newb question regarding inheritance

From: ofira shaer <oshaer_at_gmail.com>
Date: Thu, 23 Jul 2009 11:32:51 +0300

Hi.


I am trying to understand how do I define an inheritance in XSD.
For example, how do i define a base class

BaseAction
  String actionName
  int actionLength
  List <Fields>


and a derived class:

DerivedAction
   actionName = "derivedName"
   actionLength = derivedLength
  List<DerivedFields>

Should I use restriction/extenstion/substitusion group?
I tried some options and it seems that the combination of extension and
restriction is pretty complicated...
I will be very thankful for any link or a general direction.

Thanks.
Ofira.