title: XML schema: How to change the maxLength of all strings in document
body: <p>I want to set the schema-wide <code>maxLength</code> value of <code>xsd:string</code> in one place and have it apply anywhere <code>xsd:string</code> is used.  I want to limit any and all strings to 50 characters, for example.</p>
  
  <p>I know I can do this...</p>
  
  <pre><code>&lt;xsd:simpleType name="MaxLen50"&gt;
    &lt;xsd:restriction base="xsd:string"&gt;
      &lt;xsd:maxLength value="50"/&gt;
    &lt;/xsd:restriction&gt;
  &lt;/xsd:simpleType&gt;
  ...
  &lt;xsd:element name="Foo" type="MaxLen50" /&gt;
  &lt;xsd:element name="Bar" type="MaxLen50" /&gt;
  &lt;xsd:element name="Baz" type="MaxLen50" /&gt;
  </code></pre>
  
  <p>...but the problem is that I would have to go to every string in the XSD and change it from <code>xsd:string</code> to <code>MaxLen50</code>.  I just want to set the default for <code>xsd:string</code> and have it apply to all elements with <code>type="xsd:string"</code></p>