<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>1996</bug_id>
          
          <creation_ts>2005-09-07 12:40:04 +0000</creation_ts>
          <short_desc>the [schema default] property is half-useless</short_desc>
          <delta_ts>2007-04-16 16:39:59 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>XML Schema</product>
          <component>Structures: XSD Part 1</component>
          <version>1.1 only</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc>http://www.w3.org/TR/xmlschema-1/#a-schema_default</bug_file_loc>
          <status_whiteboard>medium, easy</status_whiteboard>
          <keywords>unclassified</keywords>
          <priority>P4</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>4004</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Henry S. Thompson">ht</reporter>
          <assigned_to name="XML Schema WG">w3c-xml-schema-wg</assigned_to>
          
          
          <qa_contact name="XML Schema comments list">www-xml-schema-comments</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>5778</commentid>
    <comment_count>0</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2005-09-07 12:40:05 +0000</bug_when>
    <thetext>As specified, it gets a value when an Attribute Declaration has a value 
constraint but not when an Attribute Use has one.

Either we should

1) Deprecate this in 1.0 and remove it from 1.1 (what use is it, anyway -- why 
is it here?);

2) Add a Note about its half-brokenness;

3) &apos;fix&apos; it, pbly by moving it under Complex Type Defn PSVI contributions and 
folding in Attribute Uses.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5779</commentid>
    <comment_count>1</comment_count>
    <who name="Henry S. Thompson">ht</who>
    <bug_when>2005-09-07 12:54:23 +0000</bug_when>
    <thetext>Turns out it&apos;s there because in 2000 there was a [default] property on 
attributes in early drafts of the Infoset REC (e.g. 
http://www.w3.org/TR/2000/WD-xml-infoset-20000726#infoitem.attribute)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>12385</commentid>
    <comment_count>2</comment_count>
    <who name="C. M. Sperberg-McQueen">cmsmcq</who>
    <bug_when>2006-10-11 02:55:33 +0000</bug_when>
    <thetext>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&apos;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&apos;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&apos;s words) 3) &apos;fix&apos; it, pbly by moving it under 
Complex Type Defn PSVI contributions and folding in Attribute 
Uses. (harder, mostly because I don&apos;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?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>13007</commentid>
    <comment_count>3</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2006-11-22 05:37:45 +0000</bug_when>
    <thetext>Proposal: to adopt option (2), with some wording changes.

Resolution: adopted at 2006-10-17 telecon.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>