title: Compile error with a "restriction date" XSD
body: <p>Im actually stuck at a homework with xsd attribute date, where i want to set minInclusive and maxInclusive restriction. Here is my code (My problem is in front of the : &lt;--------) :</p>
  
  <pre><code>&lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema%22%3E
     &lt;xsd:element name="cdtheque"&gt;
       &lt;xsd:complexType&gt; &lt;xsd:sequence minOccurs="0"&gt;
          &lt;xsd:element name="cd"&gt;
            &lt;xsd:complexType&gt;
              &lt;xsd:all&gt;
                 &lt;xsd:element name="titre" type="xsd:string"/&gt;
                 &lt;xsd:element name="style" type="xsd:string"/&gt;
                 &lt;xsd:element name="artiste" type="xsd:string"/&gt;
               &lt;/xsd:all&gt;
             &lt;/xsd:complexType&gt;
           &lt;/xsd:element&gt;
         &lt;/xsd:sequence&gt;
          &lt;xsd:attribute type="xsd:date" name="date"&gt;   &lt;--------
            &lt;xsd:simpleType&gt;
            &lt;xsd:restriction base="xsd:date"&gt;  
              &lt;xsd:minInclusive value="1990-01-01"/&gt;
              &lt;xsd:maxInclusive value="2030-01-01"/&gt;
            &lt;/xsd:restriction&gt;
          &lt;/xsd:simpleType&gt;
          &lt;/xsd:attribute&gt;
          &lt;xsd:attribute type="xsd:string" name="proprietaire"/&gt;
        &lt;/xsd:complexType&gt;
      &lt;/xsd:element&gt;
    &lt;/xsd:schema&gt;
  </code></pre>
  
  <p>And I get this fail : </p>
  
  <pre><code>xmllint --noout --schema ex3schema.xsd ex3.xml
  ex3schema.xsd:15: element restriction: Schemas parser error : 
  Element '{http://www.w3.org/2001/XMLSchema%7Dattribute': 
  The content is not valid. Expected is (annotation?, simpleType?).
  WXS schema ex3schema.xsd failed to compile
  </code></pre>
  
  <p>I'm beginner, but I looked on many internet websites since few days now, I checked again and again the Syntax on W3S. 
  Still I dont see what's wrong with my code, maybe one of you could find this out ?</p>
  
  <p>Thanks for your help.</p>