<?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>6170</bug_id>
          
          <creation_ts>2008-10-17 09:03:22 +0000</creation_ts>
          <short_desc>Wildcards and defaultAttributes</short_desc>
          <delta_ts>2008-10-24 17:26:29 +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 NT</op_sys>
          <bug_status>RESOLVED</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="Michael Kay">mike</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>22190</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-10-17 09:03:22 +0000</bug_when>
    <thetext>In 3.4.2.4, XML Mapping summary, property {attribute uses}, it is stated

&lt;quote&gt;
If the &lt;schema&gt; ancestor has a defaultAttributes attribute, and the &lt;complexType&gt; element does not have defaultAttributesApply = false, then the properties {attribute uses} and {attribute wildcard} are computed as if there were an &lt;attributeGroup&gt; [child] with empty content and a ref [attribute] whose ·actual value· is the same as that of the defaultAttributes  [attribute].
&lt;/quote&gt;

For completeness, it needs to say whether this hypothetical &lt;attributeGroup&gt; child is at the start or the end. This is because when multiple attribute groups are combined, and more than one of them has an attribute wildcard, the effective processContents is taken from the first.

(This is a horrible rule, but it&apos;s the only one we&apos;ve got. I&apos;ve argued in WG email (see http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2008Oct/0009.html - member-only) that at least for defaultAttributes the result should be the union rather than the intersection, and by analogy with derivation by extension, the processContents would then be that of the extended type rather than the base type.).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22191</commentid>
    <comment_count>1</comment_count>
    <who name="Michael Kay">mike</who>
    <bug_when>2008-10-17 10:02:01 +0000</bug_when>
    <thetext>Another problem with this text is that it appears in the mapping rule for the {attribute uses} property; it needs to appear again, or be referenced, in the mapping rule for the {attribute wildcard} property.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22198</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2008-10-17 16:53:45 +0000</bug_when>
    <thetext>My intuition is the &quot;end&quot;, to allow local rules to override the default.

The issue raised in [1] probably warrants an entry in Bugzilla so that we don&apos;t lose track of it.

[1] http://lists.w3.org/Archives/Member/w3c-xml-schema-ig/2008Oct/0009.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>22251</commentid>
    <comment_count>3</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2008-10-24 17:26:29 +0000</bug_when>
    <thetext>On 2008-10-24, the working group adopted a proposal to address this issue by
- Specifying that defaulted attribute group appears after the explicitly referenced attribute groups
- Repeating rules around applying default attributes in &quot;3.4.2.5 Mapping Rule for Attribute Wildcard Property&quot;

The proposal (along with changes for other bugs) can be found at (member-only):
http://www.w3.org/XML/Group/2004/06/xmlschema-1/structures.omni0810.html
</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>