<!DOCTYPE testSet SYSTEM "../../Group/2007/09/schema_composition/t0/ancillary/AnnotatedTSSchema.dtd" [

<!ENTITY TSNS 'TestSuite'>
<!ATTLIST testSet
          xmlns CDATA 'TestSuite'
>

<!ENTITY % html-for-documentation SYSTEM
  "ancillary/xhtml-for-annotation.dtd">
%html-for-documentation;

]>
<testSet contributor="C. M. Sperberg-McQueen" name="exx2008"
         xmlns       = "&TSNS;"
         xmlns:xs    = "http://www.w3.org/2001/XMLSchema"
         xmlns:xlink = "http://www.w3.org/1999/xlink"
>
 <annotation>
  <documentation>
   <div xmlns="http://www.w3.org/1999/xhtml">
    <p>A set of miscellaneous tests constructed by hand to answer
     various questions, mostly in response to email or other inquiries, 
     and recorded here to make them conveniently available to others,
     should the need arise.</p>
    <p>Revisions:</p>
    <ul>
     <li>2008-01-02 : CMSMcQ : create this test catalog for examples,
                               make XHTML modularization driver,
                               make test case test5074.
     </li>
    </ul>
   </div>
  </documentation>
 </annotation>

 <!--* 
   N.B. there is no expected result for some of these tests: they are intended to
   find out what current processors do.  So some entries have no 'expected' 
   elements.

   <expected validity="???"/>
 *-->

 <testGroup name="sg-derivation-1">
  <annotation>
   <documentation>
    <div xmlns="http://www.w3.org/1999/xhtml"
     >
     <p>Schema for testing behavior of existing processors
      w.r.t. type derivation of elements in a substitution group.
     </p>
     <p>   
      Based on an example given by Xan Gregg in 
      <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=5074#c2">
      comment 2 of Bugzilla issue 5074</a>.
     </p>
     <p>
      2 January 2008.
     </p>
    </div>
   </documentation>
  </annotation>

  <schemaTest name="sgd1s">
   <schemaDocument xlink:href="sgd1.xsd"/>
  </schemaTest>  
  <instanceTest name="sgd1i">
   <instanceDocument xlink:href="sgd1.xml"/>
  </instanceTest>
 </testGroup>
 <testGroup name="sg-derivation-2">
  <annotation>
   <documentation>
    <div xmlns="http://www.w3.org/1999/xhtml"
     >
     <p>Schema for testing behavior of existing processors
      w.r.t. type derivation of elements in a substitution group.
     </p>
     <p>   
      Based on an example given by Xan Gregg in 
      <a href="http://www.w3.org/Bugs/Public/show_bug.cgi?id=5074#c2">
      comment 2 of Bugzilla issue 5074</a>.
     </p>
     <p>
      This one is just like sg-derivation-1, except that all element
      declarations have explicitly defined types.
     </p>
     <p>
      2 January 2008.
     </p>
    </div>
   </documentation>
  </annotation>

  <schemaTest name="sgd2s">
   <schemaDocument xlink:href="sgd2.xsd"/>
  </schemaTest>  
  <instanceTest name="sgd2i">
   <instanceDocument xlink:href="sgd2.xml"/>
  </instanceTest>
 </testGroup>

 <testGroup name="b5003">
  <annotation>
   <documentation>
    <div xmlns="http://www.w3.org/1999/xhtml"
     >
     <p>Schema for testing behavior of existing processors
      w.r.t. different value constraints for elements with the
      same name in different contexts.
     </p>
    </div>
   </documentation>
  </annotation>

  <schemaTest name="b5003.xsd">
   <schemaDocument xlink:href="b5003.xsd"/>
  </schemaTest>  
  <instanceTest name="b5003.xml">
   <instanceDocument xlink:href="b5003.xml"/>
  </instanceTest>
 </testGroup>

</testSet>