RE: Extending "choice" model group in a xsd schema

> 
> I think there was an intuition on the part of some members of 
> the working group that extension would not only be similar in 
> spirit to what is done for data inheritance in OO programming 
> languages, but that it would facilitate serialization of such 
> OO structures to XML.  

I thought it was probably something along those lines.

The odd thing though is that the OO languages I'm familiar with treat the
fields/methods on a class as a set rather than a sequence, and a subclass
can add members to this set; so they don't have any kind of user-visible
constraint like the one in XSD that says the additions have to be at the end
of the sequence.

Regards,

Michael Kay
http://www.saxonica.com/
http://twitter.com/michaelhkay 

Received on Friday, 8 January 2010 15:35:43 UTC