title: Using XSD to validate node count
body: <p>I don't think this is possible but I thought I'd throw it out there.  Given this XML:</p>
  
  <pre><code> &lt;people count="3"&gt;
        &lt;person&gt;Bill&lt;/person&gt;
        &lt;person&gt;Joe&lt;/person&gt;
        &lt;person&gt;Susan&lt;/person&gt;
   &lt;/people&gt;
  </code></pre>
  
  <p>Is it possible in an XSD to force the @count attribute value to be the correct count of defined elements (in this case, the person element)?  The above example would obviously be correct and the below example would not validate:</p>
  
  <pre><code> &lt;people count="5"&gt;
        &lt;person&gt;Bill&lt;/person&gt;
        &lt;person&gt;Joe&lt;/person&gt;
        &lt;person&gt;Susan&lt;/person&gt;
   &lt;/people&gt;
  </code></pre>