>From: Jaime Huerta Cepas
>Sent: Thu, November 11, 2010 1:12:31 AM
Jaime -
> I will also take a look at the abstract type restriction/extension
> problem. I really need this feature.
>
I believe that I have strategy for fixing the elements defined as
restrictions on another type. Thanks for encouraging me to study
this more carefully. The XML Schema spec does say that when type A
is a restriction of type B, then A "inherits" attributes from B
(without repeating their definitions) but that A does *not* inherit
children (element content) from B.
Do you agree with that. It seems consistent with what I see in
nexmml/examples/trees.xml, at least.
I had been misled on this, by the way, by the XML Schema
book I have (Walmsley; "Definitive XML Schema").
If I'm right about that then we can use "partial" inheritance to
implement restrictions. By partial inheritance I mean that we
inherit attributes, but *not* children (element content).
Actually, I might use a mix-in class, so that if A is a restriction
of B, then the generated class header line might look like this:
class A(GeneratedsSuper, B):
Class A would have all the attributes defined in B and its
super-classes, but none of the elements defined in B, unless they
are repeated in the definition of type A.
And, of course, I still have the abstract type issue to look into.
Or, does this fix that one?
I'm not going to be able to work full-time on this. So, it's
likely that if I am able to implement a solution, it will be
a way in the future. I don't know what your time-frame is. But,
I'll have to admit that waiting for this fix is risky.
I apologize for not having a fix yet for these issues. But, I did
want you to know that they have at least some of my attention.
> We keep in contact,
>
Good.
> PS. I didn't realize there was a mailing list. Do you prefer me to
> send bug reports and patches there?
Using the generateds email list is not something I require,
but doing so might help. There is always the possibility that
someone else might be dealing with a similar problem and that our
conversation would help them or encourage them to help us. So, I'm
CC-ing the list with this.
More later.
- Dave
--
Dave Kuhlman
http://www.rexx.com/~dkuhlman
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
generateds-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/generateds-users