<?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>2001</bug_id>
          
          <creation_ts>2005-09-07 19:45:01 +0000</creation_ts>
          <short_desc>R-023: Restrictions of attributes specifying &quot;use&quot;</short_desc>
          <delta_ts>2009-04-21 19:24:49 +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>INVALID</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>5792</commentid>
    <comment_count>0</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-07 19:45:01 +0000</bug_when>
    <thetext>The constraints listed for &quot;derivation-ok-restriction&quot; do not appear to 
prohibit the following: 

&lt;xsd:complexType name=&quot;baseType&quot;&gt;
     &lt;xsd:attribute name=&quot;attrib1&quot; type=&quot;xsd:string&quot; use=&quot;prohibited&quot;/&gt;
&lt;xsd:complexType&gt;

&lt;xsd:complexType name=&quot;restrictedType&quot;&gt;
     &lt;xsd:complexContent&gt;
          &lt;xsd:restriction base=&quot;baseType&quot;&gt;
               &lt;xsd:attribute name=&quot;attrib1&quot; type=&quot;xsd:string&quot; use=&quot;required&quot;/&gt;
          &lt;/xsd:restriction&gt;
     &lt;/xsd:complexContent&gt;
&lt;/xsd:complexType&gt;
Shouldn&apos;t this be disallowed, since instances of the restricted type are not 
valid instances of the base?

See
http://lists.w3.org/Archives/Public/www-xml-schema-comments/2001AprJun/0225.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5793</commentid>
    <comment_count>1</comment_count>
    <who name="Sandy Gao">sandygao</who>
    <bug_when>2005-09-07 19:46:52 +0000</bug_when>
    <thetext>This restriction is already disallowed by the Structures spec. In the base 
type, there is no component for the attribute because of the use=&quot;prohibited&quot;. 
Given this, clause 2.2 of Schema Component Constraint: Derivation Valid 
(Restriction, Complex) applies and causes this example to be invalid.

No erratum is required.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>