title: Validate XML Element Attribute value using XSD
body: <p>I have following XML Element. 
  I need to validate whether <strong>Parameter</strong> Attribute is holding only Y or N in following XML element</p>
  
  <pre><code>&lt;Test Script="abc.sh" Parameter="Y"/&gt;
                 **OR**
  &lt;Test Script="abc.sh" Parameter="N"/&gt;
  </code></pre>
  
  <p><strong>My XSD is :</strong> </p>
  
  <pre><code>    &lt;xs:element name="Test" minOccurs="0"&gt;
          &lt;xs:complexType&gt;
              &lt;xs:attribute name="Script" type="xs:string" use="required"/&gt;
              &lt;xs:attribute name="Parameter" type="xs:string" use="optional"/&gt;                    
          &lt;/xs:complexType&gt;
      &lt;/xs:element&gt;
  </code></pre>
  
  <p>Currently this XSD is not validating whether Parameter is holding <strong>Y</strong> or <strong>N</strong></p>