title: XML enumeration - using value with space in it and using multiple selections
body: <p>the first question is written above: can I use spaces or not?</p>
  
  <pre><code>&lt;xs:simpleType name="Testing"&gt;
      &lt;xs:restriction base="xs:string"&gt;
        &lt;xs:enumeration value="my sample spaced value"/&gt;
        &lt;xs:enumeration value="my second spaced value"/&gt;
        &lt;xs:enumeration value="myThirdValue"/&gt;
        &lt;xs:enumeration value="myFourthValue"/&gt;
      &lt;/xs:restriction&gt;
    &lt;/xs:simpleType&gt;
  </code></pre>
  
  <p>What I've found is  this: <a href="https://stackoverflow.com/questions/12494690/specify-a-multi-word-enumeration-value-in-an-xml-dtd">Specify a multi-word enumeration value in an XML/DTD</a></p>
  
  <p>But on the other hand here it says it can be any simple type: <a href="http://www.datypic.com/sc/xsd/e-xsd_enumeration.html" rel="nofollow noreferrer">http://www.datypic.com/sc/xsd/e-xsd_enumeration.html</a></p>
  
  <p>Can I have this question resolved, preferablly with a link to the paragraph in w3c specification?</p>
  
  <p>The second question is how could it validate when I select more than one answer, so the output would be like:</p>
  
  <pre><code>&lt;testing&gt;myThirdValue myFourthValue&lt;/testing&gt;
  </code></pre>
  
  <p>I'm getting:</p>
  
  <blockquote>
    <p>cvc-enumeration-valid: Value 'myThirdValue myFourthValue' is not facet-valid with respect to enumeration '[my sample spaced value, my second spaced value, myThirdValue, myFourthValue]'. It must be a value from the enumeration.</p>
  </blockquote>
  
  <p>And how can it not go crazy, when space is used as a separator and I have spaces in value name?</p>
  
  <pre><code>&lt;testing&gt;my sample spaced value my second spaced value&lt;/testing&gt;
  </code></pre>
  
  <p>Do I have to specify a pattern to be able to parse more than one value?</p>
  
  <p>Thanks!</p>