<?xml version="1.0" encoding="UTF-8"?>
<doctype>
  <modelGroup name="e1">
    <choice/>
  </modelGroup>
  <modelGroup name="e2">
    <choice>
      <elementRef>
        <name>foo</name>
      </elementRef>
      <elementRef>
        <name>bar</name>
      </elementRef>
      <modelGroupRef name="e1"/>
    </choice>
  </modelGroup>
  <modelGroup name="e3">
    <choice>
      <elementRef>
        <name>bar</name>
      </elementRef>
      <modelGroupRef name="e1"/>
    </choice>
  </modelGroup>
  <element>
    <name>doc1</name>
    <modelGroupRef name="e2"/>
  </element>
  <element>
    <name>doc2</name>
    <modelGroupRef name="e3"/>
  </element>
  <element>
    <name>foo</name>
    <sequence/>
  </element>
  <element>
    <name>bar</name>
    <sequence/>
  </element>
</doctype>
