<?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>4565</bug_id>
          
          <creation_ts>2007-05-17 16:57:41 +0000</creation_ts>
          <short_desc>Default attribute values not always applied</short_desc>
          <delta_ts>2009-04-21 19:21:46 +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.0/1.1 both</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>resolved</keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Sandy Gao">sandygao</reporter>
          <assigned_to name="C. M. Sperberg-McQueen">cmsmcq</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>15110</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-05-17 16:57:41 +0000</bug_when>
    <thetext>Section 3.4.5 of the structures spec currently reads

&quot;For each attribute use in the {attribute uses} whose {required} is false and whose {value constraint} is not ·absent· ...&quot;

Consider a global attribute declaration:

  &lt;attribute name=&quot;a&quot; default=&quot;xyz&quot;/&gt;

And a reference to this global declaration:

  &lt;attribute ref=&quot;a&quot;/&gt;

In this case, the attribute declaration has a default value, but the reference (hence the attribute use) doesn&apos;t. Strictly following 3.4.5, &quot;xyz&quot; is *not* applied when &quot;a&quot; is missing in the instance. Intended?

Shouldn&apos;t 3.4.5 refer to the &quot;effective value constraint&quot; as opposed to &quot;whose {value constraint}&quot;?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>15203</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2007-05-25 13:41:50 +0000</bug_when>
    <thetext>Discussed at 2007-05-18 telecon. Adopted the following proposal.

- When applying default attributes, look at {value constraint} of both the attribute use and its attribute declaration (by referring to the &quot;effective value constraint&quot; term).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>