title: Can I redefine an XSD Schema to change the maxOccurs attribute of a child of a type?
body: <p>I am trying to extend an XML schema to change the number of times a child can occur under an element.</p>
  
  <p>In the original schema, the parent type is defined as such:</p>
  
  <pre><code>&lt;xsd:complexType name="CrimeLineBusiness_Type"&gt;
      &lt;xsd:complexContent&gt;
          &lt;xsd:extension base="PCLINEBUSINESS"&gt;
              &lt;xsd:sequence&gt;
                  &lt;xsd:element ref="CrimeSchedule" minOccurs="0"/&gt;
                  &lt;xsd:element ref="CrimeMoneyAndSecurities" minOccurs="0"/&gt;
              &lt;/xsd:sequence&gt;
          &lt;/xsd:extension&gt;
      &lt;/xsd:complexContent&gt;
  &lt;/xsd:complexType&gt;
  </code></pre>
  
  <p>I want to make it so both <code>CrimeSchedule</code> and <code>CrimeMoneyAndSecurities</code> are repeating elements.  I thought this might work (inside of <code>xsd:redefine</code>):</p>
  
  <pre><code>    &lt;xsd:complexType name="CrimeLineBusiness_Type"&gt;
          &lt;xsd:complexContent&gt;
              &lt;xsd:extension base="CrimeLineBusiness_Type"&gt;
                  &lt;xsd:sequence&gt;
                      &lt;xsd:element ref="CrimeMoneyAndSecurities" minOccurs="0" maxOccurs="unbounded"/&gt;
                      &lt;xsd:element ref="CrimeSchedule" minOccurs="0" maxOccurs="unbounded"/&gt;
                  &lt;/xsd:sequence&gt;
              &lt;/xsd:extension&gt;
          &lt;/xsd:complexContent&gt;
      &lt;/xsd:complexType&gt;
  </code></pre>
  
  <p>However, then I get the following error:</p>
  
  <blockquote>
    <p>cos-nonambig: CrimeSchedule and CrimeSchedule (or elements from their substitution group) violate "Unique Particle Attribution". 
     During validation against this schema, ambiguity would be created for those two particles.</p>
  </blockquote>
  
  <p>This makes sense, since those children were indeed defined in the original schema.  So, how can I accomplish what I need to do?</p>
  
  <p>Thanks!</p>