<?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>2205</bug_id>
          
          <creation_ts>2005-09-14 19:09:40 +0000</creation_ts>
          <short_desc>R-213: Question about attribute wildcards and restriction</short_desc>
          <delta_ts>2009-04-21 19:25:08 +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 only</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>LATER</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></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="Henry S. Thompson">ht</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>6222</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-14 19:09:40 +0000</bug_when>
    <thetext>This is a recap of an possible erratum discussed within the Schema IG. 

Because attribute wildcards have a &quot;lazy&quot; behavior, it&apos;s possible for an 
apparently-valid restriction to violate the general notion of restriction. 
By &quot;lazy&quot; I mean the property that an attribute-wildcard will only match an 
attribute-information-item (AII) if no other attribute-use matches the AII. 

Best demonstrated by example: 

&lt;xs:schema xmlns:xs=&quot;http://www.w3.org/2001/XMLSchema&quot;&gt;

   &lt;xs:complexType name=&quot;B&quot;&gt;
     &lt;xs:attribute name=&quot;FOO&quot; type=&quot;xs:int&quot;/&gt;
     &lt;xs:anyAttribute processContents=&quot;skip&quot;/&gt;
   &lt;/xs:complexType&gt;

   &lt;xs:complexType name=&quot;A&quot;&gt;
     &lt;xs:complexContent&gt;
       &lt;xs:restriction base=&quot;B&quot;&gt;
         &lt;xs:attribute name=&quot;FOO&quot; type=&quot;xs:int&quot; use=&quot;prohibited&quot; /&gt;
         &lt;xs:anyAttribute processContents=&quot;skip&quot; /&gt;
       &lt;/xs:restriction&gt;
     &lt;/xs:complexContent&gt;
   &lt;/xs:complexType&gt;

 &lt;/xs:schema&gt;

I believe this is a valid restriction per the rules of restriction, but not by 
the general definition in Section 2, which includes 

Members of a type, A, whose definition is a restriction of the definition of 
another type, B, are always members of type B as well. 

B doesn&apos;t accept an element with attribute FOO=&quot;abc&quot;, but A does accept it. 
That&apos;s because A doesn&apos;t contain an attribute-use for FOO, so the attribute-
wildcard validates FOO in A. 

See:
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003JanMar/0007.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6421</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-23 03:59:52 +0000</bug_when>
    <thetext>Closely related to the &quot;restriction as subsumption&quot; discussion (RQ-17 and 
friends). Propose to close this bug and defer to 1.1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6426</commentid>
    <comment_count>2</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-23 15:37:45 +0000</bug_when>
    <thetext>The email reference should be
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2003AprJun/0007.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>6519</commentid>
    <comment_count>3</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-28 11:55:05 +0000</bug_when>
    <thetext>Discussed at 2005-09-23 telecon and decided to defer this to a future version 
of the recommendation.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>