Data Model WD - Issue-0064

Hi,

I think Issue-0064 should be renamed something like "Including type in
element constructors" - it's a comment on the editorial note just
after the element-complex-node constructor in Section 4.2 which says:

 "The constructor only takes the element declaration, because it's
  possible to derive the type of an element or attribute from its
  corresponding declaration. But would it be cleaner to include the
  type in the constructor as well?"

Issue-0064 is a "yes" to that question, because the type of an element
is not always the same as the type of the element declaration - if it
has an xsi:type attribute, the type named there is the type of the
element. The same applies to the element-simple-node constructor. It
doesn't apply to attributes, since attributes can't have xsi:type
attributes, obviously, but it might be worth making the change for the
attribute node constructors for the sake of consistency.

Cheers,

Jeni
---
Jeni Tennison
http://www.jenitennison.com/

Received on Sunday, 13 January 2002 09:22:31 UTC