title: How can i define different scope for attribute on xsd?
body: <pre><code>&lt;Metamodel&gt;
    &lt;Package Name="serhat"&gt;
      &lt;OwnedType&gt;
        &lt;Class Name="serhat"&gt;&lt;/Class&gt;
      &lt;/OwnedType&gt;
    &lt;/Package&gt;
    &lt;Package Name="serhat2"&gt;
      &lt;OwnedType&gt;
        &lt;Class Name="serhat"&gt;&lt;/Class&gt;
      &lt;/OwnedType&gt;
    &lt;/Package&gt;
    &lt;Class Name="serhat"&gt;&lt;/Class&gt;
  &lt;/Metamodel&gt;
  </code></pre>
  
  <p>i have name attribute on elements.This name attribute must be unique in Package element
  but in Class element name attribute may repeat on another class element like;</p>
  
  <pre><code>  &lt;Package Name="serhat"&gt;
      &lt;OwnedType&gt;
        &lt;Class Name="serhat"&gt;&lt;/Class&gt;
      &lt;/OwnedType&gt;
    &lt;/Package&gt;
    &lt;Package Name="serhat2"&gt;
      &lt;OwnedType&gt;
        &lt;Class Name="serhat"&gt;&lt;/Class&gt;
      &lt;/OwnedType&gt;
    &lt;/Package&gt;
  </code></pre>
  
  <p>how can i define this attribute ?</p>