W3C home > Mailing lists > Public > www-xml-schema-comments@w3.org > October to December 2006

[Bug 1996] the [schema default] property is half-useless

From: <bugzilla@wiggum.w3.org>
Date: Wed, 11 Oct 2006 02:55:33 +0000
CC:
To: www-xml-schema-comments@w3.org
Message-Id: <E1GXUFp-0005mc-Ui@wiggum.w3.org>

http://www.w3.org/Bugs/Public/show_bug.cgi?id=1996





------- Comment #2 from cmsmcq@w3.org  2006-10-11 02:55 -------
Looking at this, I see two relatively easy solutions, one
relatively easy half-solution, and one harder solution:

1 remove this property entirely from both elements and
attributes (easy)

2 change the relevant paragraph in section 3.2.5 (Attribute 
Declaration Information Set Contributions) from

  Also, if and only if the declaration has a {value constraint}, the
  item has a property: 

      PSVI Contributions for attribute information items

      [schema default]
        The {lexical form} of the declaration's {value constraint}.

to 

  Also, if and only if the declaration, or the Attribute Use to
  which the item was attributed, has a {value constraint}, the
  item has a property: 

      PSVI Contributions for attribute information items

      [schema default]
        The {lexical form} of the {value constraint}.

(easy)

3 Add a note to the attribute flavor of this property, 
noting that it doesn't appear when the value constraint is
on the attribute use instead of the attribute declaration,
and thus may not be useful in some situations.  (easy,
but not a full solution)

4 (in Henry's words) 3) 'fix' it, pbly by moving it under 
Complex Type Defn PSVI contributions and folding in Attribute 
Uses. (harder, mostly because I don't know where Henry had
in mind to move it to).

Of these, 1 or 2 seems most satisfactory to me.  Two questions
arise which might help us choose between them:  (1) does
anyone currently use this property, who would be inconvenienced
if it went away in 1.1?  (2) do people agree that the change
in approach 2 suffices to make the property no longer half-broken?
Received on Wednesday, 11 October 2006 02:55:44 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 6 December 2009 18:13:11 GMT