<?xml version="1.0" encoding="UTF-8"?>
<test xmlns="http://www.w3.org/XML/2008/xsdl-exx/ns1"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://www.w3.org/XML/2008/xsdl-exx/ns1
                      empty-branch.xsd">
  <!--* Since s is declared as xs:string, all of these are
      * valid. 
      *-->
  <s></s>
  <s>a</s>
  <s>b</s>
  <s>c</s>
  <s>aa</s>
  
  <!--* Of these, the first two should be valid and the
      * others not valid.
      *-->
  <s xsi:type="optional-a"></s>
  <s xsi:type="optional-a">a</s>
  <s xsi:type="optional-a">b</s>
  <s xsi:type="optional-a">c</s>
  <s xsi:type="optional-a">aa</s>
  
  <!--* For these, the same applies:  the first two should 
      * be valid and the others not valid.
      *-->
  <s xsi:type="a-or-nothing"></s>
  <s xsi:type="a-or-nothing">a</s>
  <s xsi:type="a-or-nothing">b</s>
  <s xsi:type="a-or-nothing">c</s>
  <s xsi:type="a-or-nothing">aa</s>
    
  <!--* For these, the same applies:  the first two should 
    * be valid and the others not valid.
    *-->
  <s xsi:type="nothing-or-a"></s>
  <s xsi:type="nothing-or-a">a</s>
  <s xsi:type="nothing-or-a">b</s>
  <s xsi:type="nothing-or-a">c</s>
  <s xsi:type="nothing-or-a">aa</s>
  
  <s xsi:type="empty-string"></s>
  <s xsi:type="empty-string">a</s>
  
  <s xsi:type="empty-or-nothing"></s>
  <s xsi:type="empty-or-nothing">a</s>
  
  <s xsi:type="empty-or-nothing-2"></s>
  <s xsi:type="empty-or-nothing-2">a</s>
</test>
