<?xml version="1.0" encoding="UTF-8"?>
<!--
xmlns:xml="http://www.w3.org/XML/1998/namespace"

-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tb="http://www.talkbank.org/ns/talkbank" xmlns="http://www.talkbank.org/ns/talkbank" xmlns:xhtml="http://www.w3.org/1999/xhtml" targetNamespace="http://www.talkbank.org/ns/talkbank" elementFormDefault="qualified" version="3.2.2" id="Talkbank">
  <xs:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="http://www.w3.org/2001/xml.xsd"/>
  <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
    <xs:documentation> A full definition of the CHAT format. </xs:documentation>
    <xs:documentation> Developed by Romeo Anghelache, from the CHAT specifications, released under
            the GNU Public License, 2001. Continuing development by Franklin Chen. </xs:documentation>
    <xs:documentation>
      <a href="https://talkbank.org/0info/manuals/CHAT.html">CHAT manual section on this
                topic...</a>
    </xs:documentation>
  </xs:annotation>
  <xs:element name="CHAT">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A single CHAT transcript. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:element name="Participants">
          <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
            <xs:documentation> List of the participants in the transcript along with their
                            individual attributes. Every utterance in the transcript must be identified by a
                            unique listed participant. </xs:documentation>
            <xs:documentation>
              <a href="https://talkbank.org/0info/manuals/CHAT.html#Participants_Header">CHAT manual
                                section on this topic...</a>
            </xs:documentation>
          </xs:annotation>
          <xs:complexType mixed="false">
            <xs:sequence>
              <xs:element name="participant" type="participantType" maxOccurs="unbounded">
                <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                  <xs:documentation> Information about a participant </xs:documentation>
                  <xs:documentation>
                    <a href="https://talkbank.org/0info/manuals/CHAT.html#ID_Header">CHAT manual section on this
                                            topic...</a>
                  </xs:documentation>
                </xs:annotation>
              </xs:element>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <!-- MUN: Added 'minOccurs="0"' -->
        <xs:choice maxOccurs="unbounded" minOccurs="0">
          <xs:element ref="comment"/>
          <!--
                    TODO need constraints on all the gems in order
                    to validate matching of begin and end
                -->
          <xs:element name="begin-gem">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation> Begin a gem (requires matching end of gem). </xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#Bg_Header">CHAT manual section
                                    on this topic...</a>
              </xs:documentation>
            </xs:annotation>
            <xs:complexType mixed="false">
              <xs:attribute name="label" type="xs:string" use="required">
                <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                  <xs:documentation> Label for a begin/end gem. </xs:documentation>
                  <xs:documentation>
                    <a href="https://talkbank.org/0info/manuals/CHAT.html#Bg_Header">CHAT manual
                                            section on this topic...</a>
                  </xs:documentation>
                </xs:annotation>
              </xs:attribute>
            </xs:complexType>
          </xs:element>
          <xs:element name="end-gem">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation> End a gem (requires earlier begin of gem). </xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#Eg_Header">CHAT manual section
                                    on this topic...</a>
              </xs:documentation>
            </xs:annotation>
            <xs:complexType mixed="false">
              <xs:attribute name="label" type="xs:string" use="required">
                <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                  <xs:documentation> Label for a begin/end gem. </xs:documentation>
                  <xs:documentation>
                    <a href="https://talkbank.org/0info/manuals/CHAT.html#Bg_Header">CHAT manual
                                            section on this topic...</a>
                  </xs:documentation>
                </xs:annotation>
              </xs:attribute>
            </xs:complexType>
          </xs:element>
          <xs:element name="lazy-gem">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation> Begin a lazy gem; does not require a matching end gem, but its
                                scope is up to the next lazy gem header, or the end of the transcript if there is no
                                further lazy gem header. </xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#G_Header">CHAT manual section
                                    on this topic...</a>
              </xs:documentation>
            </xs:annotation>
            <xs:complexType mixed="false">
              <xs:attribute name="label" type="nonemptyStringType" use="required">
                <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                  <xs:documentation> Label for a lazy gem. </xs:documentation>
                  <xs:documentation>
                    <a href="https://talkbank.org/0info/manuals/CHAT.html#G_Header">CHAT manual
                                            section on this topic...</a>
                  </xs:documentation>
                </xs:annotation>
              </xs:attribute>
            </xs:complexType>
          </xs:element>
          <xs:element ref="u"/>
        </xs:choice>
      </xs:sequence>
      <xs:attribute name="Version" type="nonemptyStringType" use="required">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Version of the XML Schema this transcript was created for. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Version">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Date" type="xs:date" use="optional">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Date of transcription. Note that there can only be one date. A session
                        spread out over multiple dates must be split into multiple CHAT transcripts. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Date_Header">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Corpus" type="nonemptyStringType" use="required">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Every transcript must be part of a corpus. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Corpus_Field">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Videos" type="videosType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The transcript may be associated with at most one media file. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#VideosHeader">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Media" type="mediaRefType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The transcript may be associated with at most one media URI. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Media_Header">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Mediatypes" type="mediaTypesType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The transcript may be associated with at most one media file. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Media_Types">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Lang" type="languagesType" use="required">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The main languages used in the transcript. (Other languages used only
                        in specific words do not need to be listed.) </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Languages_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Language_Field">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Options" type="optionsType"/>
      <xs:attribute name="DesignType" type="nonemptyStringType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Design type </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Types_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="ActivityType" type="nonemptyStringType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Activity type </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Types_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="GroupType" type="nonemptyStringType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Group type </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Types_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Colorwords" type="nonemptyStringType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Information about text color mappings for use by the CLAN editor. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#ColorWords_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Window" type="nonemptyStringType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Information about window size and placement for use by the CLAN editor. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Window_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="PID" type="nonemptyStringType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The PID for the document. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#PID_Header">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="Font" type="nonemptyStringType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The font to be used for display in the CLAN editor. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Font_Header">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
    <xs:unique name="uIDKey">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Key to ensure uniqueness among u elements. These IDs are used externally
                    for double-blind transcription. </xs:documentation>
      </xs:annotation>
      <xs:selector xpath="tb:u"/>
      <xs:field xpath="@uID"/>
    </xs:unique>
    <xs:unique name="partIDKey">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Key to ensure all participants have unique ids. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Participants_Header">CHAT manual
                        section on this topic...</a>
        </xs:documentation>
      </xs:annotation>
      <xs:selector xpath="tb:Participants/tb:participant"/>
      <xs:field xpath="@id"/>
    </xs:unique>
    <xs:keyref refer="partIDKey" name="partIDKeyRef">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> KeyRef to ensure that utterances refer to an actual participant. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Speaker_ID">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
      <xs:selector xpath="tb:u"/>
      <xs:field xpath="@who"/>
    </xs:keyref>
  </xs:element>
  <xs:element name="freecode">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Unscoped complex local events in the middle of an utterance. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#ComplexLocalEvents">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType"/>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="postcode">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Code that can only occur at the end of an utterance. Currently arbitrary
                information, although there are some conventions. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Postcodes">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#IncludedUtterancePostcode">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#ExcludedUtterancePostcode">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType"/>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="comment">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A comment header. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Comment_Header">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="media"/>
        <xs:element ref="mediaPic"/>
      </xs:choice>
      <!-- gjh: made simple type commentTypeType -->
      <xs:attribute name="type" type="commentTypeType"/>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="commentTypeType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> The allowable types of comment headers. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Comment_Header">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Activities">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Activities. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Activities_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Bck">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Bck. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Bck_Header">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Date">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Date of transcription. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Date_Header">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Number">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Number. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Number_Header">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Recording Quality">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Recording quality. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Recording_Quality_Header">CHAT
                            manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Transcription">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Transcription. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Transcription_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Types">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Types. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Types_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Blank">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Blank. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Blank_Header">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="T">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Thumbnail. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Thumbnail_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Generic">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Comment. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Comment_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Location">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Location. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Location_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="New Episode">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> New episode. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#New_Episode_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Room Layout">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Room layout. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Room_Layout_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Situation">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Situation. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Situation_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Tape Location">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Tape location. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Tape_Location_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Time Duration">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Time duration. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Time_Duration_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Time Start">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Time start. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Time_Start_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Transcriber">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Transcriber for this transcript. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Transcriber_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Warning">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Warning. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Warning_Header">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="Page">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Page. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Page_Header">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="tagMarker">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Tag marker, used in both main line and %mor.</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Satellite_Marker">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#MorphologicalTagMarker">MOR manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="mor"/>
      </xs:sequence>
      <xs:attribute name="type" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="comma">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>,</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Comma">CHAT manual section on
                                        this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="tag">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>„</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Tag_Satellite_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/MOR.html#MorphologicalTagMarker_Tag">MOR manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="vocative">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>‡</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Vocative_Satellite_Marker">CHAT manual section on this topic...</a>
                </xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/MOR.html#MorphologicalTagMarker_Vocative">MOR manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="e">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Nonverbal event. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#SimpleEvents">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:choice>
          <xs:element ref="action"/>
          <xs:element ref="happening"/>
          <xs:element ref="otherSpokenEvent"/>
        </xs:choice>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="k"/>
          <xs:element ref="error"/>
          <xs:element ref="overlap"/>
          <xs:element ref="ga"/>
          <xs:element ref="duration"/>
        </xs:choice>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="action">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>0</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Action_Code">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false"/>
  </xs:element>
  <xs:element name="happening" type="nonemptyStringType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>&amp;=; happening, such as sneeze</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Local_Event">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:simpleType name="nonemptyStringType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A nonempty string. </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:minLength value="1"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="mediaRefType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Allowable media name. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Media_Header">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:anyURI">
        </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="languagesType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A list of languages, using the official ISO codes. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#ISO_Language_Codes">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:list itemType="languageType"/>
  </xs:simpleType>
  <xs:complexType name="morphemicBaseType" mixed="false">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> %mor unit of one-to-one correspondence with main line. A single word or a compound word or a terminator. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#Morphological_Word">MOR manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:choice>
        <xs:element ref="mw"/>
        <xs:element ref="mwc"/>
        <xs:element ref="mt"/>
      </xs:choice>
      <xs:element ref="menx" minOccurs="0" maxOccurs="unbounded"/>
      <xs:element ref="gra" minOccurs="0" maxOccurs="unbounded"/>
    </xs:sequence>
  </xs:complexType>
  <xs:element name="mor-pre" type="morphemicBaseType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>mor preclitic</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#MorphologicalPreclitic">MOR manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="mor-post" type="morphemicBaseType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>mor postclitic</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#MorphologicalPostclitic">MOR manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="langs">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> What language(s) a word is in (if not the one in default scope). </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#SecondLanguage_Marker">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:choice>
        <xs:element name="single" type="languageType">
          <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
            <xs:documentation> Word is to be interpreted in a single language. </xs:documentation>
            <xs:documentation>
              <a href="https://talkbank.org/0info/manuals/CHAT.html#SecondLanguage_Marker_Single">CHAT manual section on this topic...</a>
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="multiple" type="languagesType">
          <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
            <xs:documentation> Word is a combination of many languages. </xs:documentation>
            <xs:documentation>
              <a href="https://talkbank.org/0info/manuals/CHAT.html#SecondLanguage_Marker_Multiple">CHAT manual section on this topic...</a>
            </xs:documentation>
          </xs:annotation>
        </xs:element>
        <xs:element name="ambiguous" type="languagesType">
          <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
            <xs:documentation> Word can be interpreted as one of many languages. </xs:documentation>
            <xs:documentation>
              <a href="https://talkbank.org/0info/manuals/CHAT.html#SecondLanguage_Marker_Ambiguous">CHAT manual section on this topic...</a>
            </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:choice>
    </xs:complexType>
  </xs:element>
  <xs:element name="linker">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Utterance initiators or linkers; they indicate the way to fit the current
                utterance with an earlier one. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Utterance_Linkers">CHAT manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="quoted utterance next">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>+"</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#QuotedUtterance_Linker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="quick uptake">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>+^</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#QuickUptake_Linker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="lazy overlap mark">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>+&lt;</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#LazyOverlap_Linker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="self completion">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>+,</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#SelfCompletion_Linker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="other completion">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>++</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#OtherCompletion_Linker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="technical break TCU completion">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>+≋</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#TechnicalBreakTCUCompletion_Linker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="no break TCU completion">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>+≈</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#NoBreakTCUCompletion_Linker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="internal-media" type="mediaType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Media bullet used only before a terminator. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Internal_Media">CHAT manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="media" type="mediaType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Media bullet is allowed at the end of an utterance only if after a
                terminator. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Utterance_Media">CHAT manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="mediaType" mixed="false">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A pointer to a selection in the single video/audio file associated with the
                transcript. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#TextBullet">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#TimeAlignment_Scope">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="start" type="xs:decimal" use="required">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> The start time for the selection. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#TimeAlignment_Begin">CHAT manual
                        section on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="end" type="xs:decimal" use="required">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> The end time for the selection. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#TimeAlignment_End">CHAT manual
                        section on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="unit" type="mediaUnitType" use="required">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> The unit of time used for the selection. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#TimeAlignment_Unit">CHAT manual
                        section on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="skip" type="xs:boolean">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Whether the CLAN editor should skip upon playback. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#TimeAlignment_Skip">CHAT manual
                        section on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:simpleType name="mediaTypeType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Type of external media referenced. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Media_Types">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:NMTOKEN">
      <xs:enumeration value="audio">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Audio file. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Media_Types">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="video">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Video file. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Media_Types">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="missing">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Media is missing. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#MissingMedia">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="unlinked">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Media exists, but transcript is unlinked. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#UnlinkedMedia">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="notrans">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Media exists, but no transcription
                        exists yet. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#NoTransMedia">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="mediaUnitType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> The time unit. </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:NMTOKEN">
      <xs:enumeration value="f">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>frame</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="s">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>second</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <!-- MUN added -->
      <xs:enumeration value="ms">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>millisecond</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="b">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>byte</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="c">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>character</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:complexType name="participantType" mixed="false">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Information about a participant </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#ID_Header">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="id" type="speakerID" use="required">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's id. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Speaker_Code_Field">CHAT manual
                        section on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="role" type="roleType" use="required">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's role. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Role">CHAT manual section on this
                        topic...</a>
        </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Role_Field">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="name" type="nonemptyStringType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's name. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Name_Field">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="age" type="xs:duration" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's age, start of range during transcript. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Age_Field">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="group" type="nonemptyStringType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's group. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Group_Field">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="sex" type="sexType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's sex. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Sex_Field">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="SES" type="nonemptyStringType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's SES. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#SES_Field">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="education" type="nonemptyStringType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's education. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Education_Field">CHAT manual section
                        on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="custom-field" type="nonemptyStringType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Custom field for additional information about speaker. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Custom_Field">CHAT manual section
                        on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="birthday" type="xs:date" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's birth date. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Birth_Header">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="language" type="languagesType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's list of languages. Actually redundant because duplicated from
                    transcript's list of languages. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Languages_Header">CHAT manual
                        section on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="first-language" type="languageType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's first language (note that this does not need to be listed in
                    the languages header). </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#L1_Header">CHAT manual section on
                        this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
    <xs:attribute name="birthplace" type="nonemptyStringType" use="optional">
      <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
        <xs:documentation> Speaker's birthplace. </xs:documentation>
        <xs:documentation>
          <a href="https://talkbank.org/0info/manuals/CHAT.html#Birthplace_Header">CHAT manual
                        section on this topic...</a>
        </xs:documentation>
      </xs:annotation>
    </xs:attribute>
  </xs:complexType>
  <xs:complexType name="baseTerminatorType" mixed="false">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Terminator for an utterance. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Terminators">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="type" use="required">
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:enumeration value="p">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation> Period. </xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#Period_Terminator">CHAT manual
                                    section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="q">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation> Question mark. </xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#QuestionMark_Terminator">CHAT
                                    manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="e">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation> Exclamation point. </xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#ExclamationMark_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <!-- sterminator -->
          <xs:enumeration value="broken for coding">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+.</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#TranscriptionBreak_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="trail off">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+...</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#TrailingOff_Terminator">CHAT
                                    manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="trail off question">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+..?</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#TrailingOffQuestion_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="question exclamation">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+!?</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#QuestionExclamation_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="interruption">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+/.</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#Interruption_Terminator">CHAT
                                    manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="interruption question">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+/?</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#QuestionInterruption_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="self interruption">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+//.</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#SelfInterruption_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="self interruption question">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+//?</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#SelfInterruptedQuestion_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="quotation next line">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+"/.</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#QuotationFollows_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="quotation precedes">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>+".</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#QuotationPrecedes_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="missing CA terminator">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>For heritage only</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#MissingCA_Terminator">CHAT
                                    manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="technical break TCU continuation">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>≋</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#TechnicalBreakTCUContinuation_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
          <xs:enumeration value="no break TCU continuation">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation>≈</xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#NoBreakTCUContinuation_Terminator">CHAT manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:enumeration>
        </xs:restriction>
      </xs:simpleType>
    </xs:attribute>
  </xs:complexType>
  <xs:element name="t">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Main line terminator with optional %mor information. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Terminators">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#Terminator_Alignment">MOR manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:complexContent>
        <xs:extension base="baseTerminatorType">
          <xs:sequence>
            <xs:element ref="mor" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="mt" type="baseTerminatorType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Terminator on %mor line, important for %gra.</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Terminators">MOR manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="pg">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Group purely for phonetic annotation purposes. Note that there are no main
                line annotations allowed for the group. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Phonological_Group">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="w"/>
          <xs:element ref="g"/>
          <xs:element ref="quotation"/>
          <xs:element ref="pause"/>
          <xs:element ref="internal-media"/>
          <xs:element ref="freecode"/>
          <xs:element ref="e"/>
          <xs:element ref="s"/>
          <xs:element ref="tagMarker"/>
          <xs:element ref="long-feature"/>
          <xs:element ref="nonvocal"/>
          <xs:element ref="overlap-point"/>
          <xs:element ref="underline"/>
          <xs:element ref="italic"/>
        </xs:choice>
        <xs:element ref="mod" minOccurs="0" maxOccurs="1"/>
        <xs:element ref="pho" minOccurs="0" maxOccurs="1"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="sg">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Group purely for sign annotation purposes. Note that there are no main line annotations allowed for the group. Grouping brackets 〔 and 〕 may be used.</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Sign_Group">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="w"/>
          <xs:element ref="g"/>
          <xs:element ref="quotation"/>
          <xs:element ref="pause"/>
          <xs:element ref="internal-media"/>
          <xs:element ref="freecode"/>
          <xs:element ref="e"/>
          <xs:element ref="s"/>
          <xs:element ref="tagMarker"/>
          <xs:element ref="long-feature"/>
          <xs:element ref="nonvocal"/>
          <xs:element ref="overlap-point"/>
          <xs:element ref="underline"/>
          <xs:element ref="italic"/>
        </xs:choice>
        <xs:element ref="sw" minOccurs="1" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="sw">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Atomic unit on the %sin tier.</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Sign_Tier">CHAT manual section on this topic...</a>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Sign_Word">CHAT manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType"/>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <!-- Phon types -->
  <xs:element name="mod" type="phoneticTranscriptionType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>%mod</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="pho" type="phoneticTranscriptionType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>%pho</xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:complexType name="phoneticTranscriptionType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>An IPA transcription</xs:documentation>
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:choice minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="pw"/>
      <xs:element ref="pause"/>
      <xs:element ref="phog"/>
    </xs:choice>
  </xs:complexType>
  <xs:element name="pw" type="phoneticWord"/>
  <xs:complexType name="phoneticWord">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>A word in an IPA transcription.</xs:documentation>
    </xs:annotation>
    <xs:choice minOccurs="1" maxOccurs="unbounded">
      <xs:element ref="stress"/>
      <xs:element ref="ph"/>
      <xs:element ref="cmph"/>
      <xs:element ref="pp"/>
      <xs:element ref="sandhi"/>
    </xs:choice>
  </xs:complexType>
  <xs:element name="phog" type="phoGroupType"/>
  <xs:complexType name="phoGroupType" mixed="false">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>A collection of phonetic words enclosed by ‹ and ›. Used for one to many
                alignment between the main line and ipa.</xs:documentation>
    </xs:annotation>
    <xs:choice minOccurs="1" maxOccurs="unbounded">
      <xs:element ref="pw"/>
      <xs:element ref="pause"/>
    </xs:choice>
  </xs:complexType>
  <xs:complexType name="stressType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Syllable stress</xs:documentation>
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#stress_marker">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="type" type="stressTypeType" use="required"/>
  </xs:complexType>
  <xs:element name="stress" type="stressType"/>
  <xs:simpleType name="stressTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="primary">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Primary stress</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="secondary">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Secondary stress</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="pp" type="phoneticProsodyType"/>
  <xs:complexType name="phoneticProsodyType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Prosody in IPA transcriptions</xs:documentation>
    </xs:annotation>
    <xs:attribute name="type" type="phoneticProsodyTypeType" use="required"/>
  </xs:complexType>
  <xs:simpleType name="phoneticProsodyTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="syllable break">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>. - Syllable break / forced syllable boundary</xs:documentation>
          <xs:documentation>
            <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#syllable_boundary">Phon manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="major intonation group">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>\u2016 - Major intonation group</xs:documentation>
          <xs:documentation>
            <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#intonation_group">Phon manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="minor intonation group">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>\007c - Minor intonation group</xs:documentation>
          <xs:documentation>
            <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#intonation_group">Phon manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="cmp">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>+ - Compound word marker</xs:documentation>
          <xs:documentation>
            <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#compound_word">Phon manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="pause">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>^ - intra-word pause</xs:documentation>
          <xs:documentation>
            <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#intra-word_pause">Phon manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="blocking">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>^ - at beginning</xs:documentation>
          <xs:documentation>
            <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#intra-word_pause">Phon manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="sandhi" type="sandhiType"/>
  <xs:complexType name="sandhiType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#sandhi">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="type" type="sandhiTypeType" use="required"/>
  </xs:complexType>
  <xs:simpleType name="sandhiTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="contraction">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>\u2040 - contraction</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="linker">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>\u203f - linker</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="toneNumber" type="toneNumberType"/>
  <xs:simpleType name="toneNumberType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Superscript tone number in a transcription</xs:documentation>
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#phone__tone_number">Phon manual section on this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[⁰¹²³⁴⁵⁶⁷⁸⁹]+"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="vowelType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[ʄʅiıyɨʉɯuɪɩʏʊɷʮeøɘɵɤoəɛœɜʚɞʌɔɚɝæaɶɐαɑɒ]"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="consonantType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[pbʬƀƥɓtdʭƫȶʈʇƭɖɗᶑcɟƈkgɡƙʞɠqɢʠʛʡʔʖʗπʘǀǃ¡ǁǂɸβfƒvθðδszʑʪʫɬɮʃʆʒʓƪʂʐçɕʝƺxɣɧχħʕƹʜʢhɦʩʦʣʨʥʧʤƛλmɱƞnɳɲȵŋɴlɫɭȴʎʟⱱʙɾɿrɺɼɹɻɽʀʁʍʋwjɥɰ&gt;]"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="coverSymbol">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[ABCDEFGHIJKLMNOPQRSTUVWXYZ*]"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="base" type="baseType"/>
  <xs:simpleType name="baseType">
    <xs:union memberTypes="consonantType vowelType coverSymbol"/>
  </xs:simpleType>
  <xs:simpleType name="prefixDiacriticType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[ᵐᶬⁿᶯᶮᵑᶰ][˸̥̣̤̃̊ͪ̇̈ͭͩͨͮͯͫͬͥͧͤͦͣ̽͝͠˹˺˻˼̚ꜛꜜ᷄᷅᷆᷇᷈᷉ˆˇˉˊˋ˵˶̀́̂̋̌̏˔˕͟͞˽˾˿̴̡̢̖̘̙̜̝̞̟̠̩̪̫̬̮̯̰̱̲̳̹̺̻̼͇͈͉͍͎͓͔͕͖̉̄̆̑̒̔̐̾̿͆͊͋͌͐͑͒͗]*">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Prefix diacritic + combining diacritics</xs:documentation>
        </xs:annotation>
      </xs:pattern>
      <xs:pattern value="[·ˀˁ˞ʰʱʻʼʽᵖᵇᵗᵈᵏᵍᶿˢᶻᶴᶾˣˠˤˡʳʴʵʶʷʲʸᶦᶷᵊ⁼ʾʿ˭ꜝꜞ˥˦˧˨˩˂˃˄˅ˬ˯˰˱˲˖˗˜]̵[˸̥̣̤̃̊ͪ̇̈ͭͩͨͮͯͫͬͥͧͤͦͣ̽͝͠˹˺˻˼̚ꜛꜜ᷄᷅᷆᷇᷈᷉ˆˇˉˊˋ˵˶̀́̂̋̌̏˔˕͟͞˽˾˿̴̡̢̖̘̙̜̝̞̟̠̩̪̫̬̮̯̰̱̲̳̹̺̻̼͇͈͉͍͎͓͔͕͖̉̄̆̑̒̔̐̾̿͆͊͋͌͐͑͒͗]*">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Suffix diacritic + role reversal diacritic + combining diacritics</xs:documentation>
        </xs:annotation>
      </xs:pattern>
      <xs:pattern value="[·ˀˁ˞ʰʱʻʼʽᵖᵇᵗᵈᵏᵍᶿˢᶻᶴᶾˣˠˤˡʳʴʵʶʷʲʸᶦᶷᵊ⁼ʾʿ˭ꜝꜞ˥˦˧˨˩˂˃˄˅ˬ˯˰˱˲˖˗˜][˸̥̣̤̃̊ͪ̇̈ͭͩͨͮͯͫͬͥͧͤͦͣ̽͝͠˹˺˻˼̚ꜛꜜ᷄᷅᷆᷇᷈᷉ˆˇˉˊˋ˵˶̀́̂̋̌̏˔˕͟͞˽˾˿̴̡̢̖̘̙̜̝̞̟̠̩̪̫̬̮̯̰̱̲̳̹̺̻̼͇͈͉͍͎͓͔͕͖̉̄̆̑̒̔̐̾̿͆͊͋͌͐͑͒͗]*[͜͢͡]">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Suffix diacritic + combining diacritics + ligature</xs:documentation>
        </xs:annotation>
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="prefix" type="prefixDiacriticsType"/>
  <xs:simpleType name="prefixDiacriticsType">
    <xs:list itemType="prefixDiacriticType"/>
  </xs:simpleType>
  <xs:simpleType name="combiningDiacriticType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[˸̥̣̤̃̊ͪ̇̈ͭͩͨͮͯͫͬͥͧͤͦͣ̽͝͠˹˺˻˼̚ꜛꜜ᷄᷅᷆᷇᷈᷉ˆˇˉˊˋ˵˶̀́̂̋̌̏˔˕͟͞˽˾˿̴̡̢̖̘̙̜̝̞̟̠̩̪̫̬̮̯̰̱̲̳̹̺̻̼͇͈͉͍͎͓͔͕͖̉̄̆̑̒̔̐̾̿͆͊͋͌͐͑͒͗]"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="combining" type="combiningDiacriticsType"/>
  <xs:simpleType name="combiningDiacriticsType">
    <xs:list itemType="combiningDiacriticType"/>
  </xs:simpleType>
  <xs:simpleType name="suffixDiacriticType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[·ˀˁ˞ʰʱʻʼʽᵖᵇᵗᵈᵏᵍᶿˢᶻᶴᶾˣˠˤˡʳʴʵʶʷʲʸᶦᶷᵊ⁼ʾʿ˭ꜝꜞ˥˦˧˨˩˂˃˄˅ˬ˯˰˱˲˖˗˜][˸̥̣̤̃̊ͪ̇̈ͭͩͨͮͯͫͬͥͧͤͦͣ̽͝͠˹˺˻˼̚ꜛꜜ᷄᷅᷆᷇᷈᷉ˆˇˉˊˋ˵˶̀́̂̋̌̏˔˕͟͞˽˾˿̴̡̢̖̘̙̜̝̞̟̠̩̪̫̬̮̯̰̱̲̳̹̺̻̼͇͈͉͍͎͓͔͕͖̉̄̆̑̒̔̐̾̿͆͊͋͌͐͑͒͗]*">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Suffix diacritic + combining diacritics</xs:documentation>
        </xs:annotation>
      </xs:pattern>
      <xs:pattern value="[ᵐᶬⁿᶯᶮᵑᶰ]̵[˸̥̣̤̃̊ͪ̇̈ͭͩͨͮͯͫͬͥͧͤͦͣ̽͝͠˹˺˻˼̚ꜛꜜ᷄᷅᷆᷇᷈᷉ˆˇˉˊˋ˵˶̀́̂̋̌̏˔˕͟͞˽˾˿̴̡̢̖̘̙̜̝̞̟̠̩̪̫̬̮̯̰̱̲̳̹̺̻̼͇͈͉͍͎͓͔͕͖̉̄̆̑̒̔̐̾̿͆͊͋͌͐͑͒͗]*">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Prefix diacritic + role reversal + combining diacritics</xs:documentation>
        </xs:annotation>
      </xs:pattern>
      <xs:pattern value="[ᵐᶬⁿᶯᶮᵑᶰ][˸̥̣̤̃̊ͪ̇̈ͭͩͨͮͯͫͬͥͧͤͦͣ̽͝͠˹˺˻˼̚ꜛꜜ᷄᷅᷆᷇᷈᷉ˆˇˉˊˋ˵˶̀́̂̋̌̏˔˕͟͞˽˾˿̴̡̢̖̘̙̜̝̞̟̠̩̪̫̬̮̯̰̱̲̳̹̺̻̼͇͈͉͍͎͓͔͕͖̉̄̆̑̒̔̐̾̿͆͊͋͌͐͑͒͗]*[͜͢͡]">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Prefix diacritic + combining diacritics + ligature</xs:documentation>
        </xs:annotation>
      </xs:pattern>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="suffix" type="suffixDiacriticsType"/>
  <xs:simpleType name="suffixDiacriticsType">
    <xs:list itemType="suffixDiacriticType"/>
  </xs:simpleType>
  <xs:element name="phlen" type="phoneLengthType"/>
  <xs:simpleType name="phoneLengthType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="ː+ˑ?"/>
      <xs:pattern value="ˑ"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="ph" type="phoneType"/>
  <xs:complexType name="phoneType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>A single phone in an ipa transcription including all diacritics</xs:documentation>
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#phone">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:element ref="prefix" minOccurs="0" maxOccurs="1"/>
      <xs:element ref="base" minOccurs="1" maxOccurs="1"/>
      <xs:element ref="combining" minOccurs="0" maxOccurs="1"/>
      <xs:element ref="suffix" minOccurs="0" maxOccurs="1"/>
      <xs:element ref="phlen" minOccurs="0" maxOccurs="1"/>
      <xs:element ref="toneNumber" minOccurs="0" maxOccurs="1"/>
    </xs:sequence>
    <xs:attribute name="scType" type="syllableConstituentType"/>
  </xs:complexType>
  <xs:element name="lig" type="ligatureType"/>
  <xs:complexType name="ligatureType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Ligature between compound phones</xs:documentation>
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa.html">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:attribute name="type" type="ligatureTypeType"/>
  </xs:complexType>
  <xs:simpleType name="ligatureTypeType">
    <xs:restriction base="xs:string">
      <xs:enumeration value="breve below">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>͜ combining double breve below</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="breve">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>͡ combining double inverted breve</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="right arrow below">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Ū combining double rightwards arrow below</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="cmph" type="compoundPhoneType"/>
  <xs:complexType name="compoundPhoneType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Phone composed of one or more phones connected by ligatures.</xs:documentation>
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/transcription/ipa_transcription.html#phone">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:sequence>
      <xs:choice>
        <xs:element ref="ph" minOccurs="1" maxOccurs="1"/>
        <xs:element ref="cmph" minOccurs="1" maxOccurs="1"/>
      </xs:choice>
      <xs:element ref="lig" minOccurs="1" maxOccurs="1"/>
      <xs:element ref="ph" minOccurs="1" maxOccurs="1"/>
    </xs:sequence>
    <xs:attribute name="scType" type="syllableConstituentType"/>
  </xs:complexType>
  <xs:simpleType name="syllableConstituentType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Syllable constituent type for a phone.</xs:documentation>
      <xs:documentation>
        <a href="https://www.phon.ca/phon-manual/session_editor/syllabification_and_alignment_view.html?hl=syllabification">Phon manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="left appendix">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Left appendix ':L' when written inline with transcription</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="onset">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Syllable onset - ':O' when written inline with transcription</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="nucleus">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Syllable nucleus - ':N' when written inline with transcription</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="diphthong">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Diphthong - ':D' when written inline with transcription</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="coda">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Syllable coda - ':C' when written inline with transcription</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="right appendix">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Right appendix - ':R' when written inline with transcription</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="OEHS">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Onset of empty-headed syllable - ':E' when written inline with transcription</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="ambisyllabic">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Ambisyllabic - ':A' when written inline with transcription</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!-- End of Phon types -->
  <xs:simpleType name="annotationTypeType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Utterance annotation type. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#DependentTiers">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="addressee">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%add</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Addressee_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="actions">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%act</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Action_Tier">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="alternative">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%alt</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Alternate_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="coding">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%cod; general purpose coding</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Coding_Tier">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="cohesion">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%coh; cohesion tier</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Cohesion_Tier">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="comments">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%com; comments by investigator</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Comment_Tier">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="english translation">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%eng</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#English_Tier">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="errcoding">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%err; error coding</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Error_Tier">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="explanation">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%exp; [= text]</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Explanation_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Explanation_Scope">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="flow">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%flo</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Flow_Tier">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="facial">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%fac</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#FacialGesture_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="target gloss">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%gls</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Gloss_Tier">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="gesture">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%gpx</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Gestural_Tier">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="intonation">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%int</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Intonational_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="orthography">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%ort</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Orthography_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="paralinguistics">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%par:</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Paralinguistics_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="SALT">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%def; on the main line, not recommended</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Definitions_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="situation">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%sit</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Situation_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="speech act">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%spa</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#SpeechAct_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="time stamp">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>%tim</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Timing_Tier">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="extension">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Arbitrary annotation of the form %xfoo, intended as an extension
                        mechanism for the user. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Extension_Tier">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="groupAnnotationTypeType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Type of group annotation on main line. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#DependentOnMain_Scope">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="alternative">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>[=? text]</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#AlternativeTranscription_Scope">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="comments">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>[% text]</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Comment_Scope">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="explanation">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>[= text]</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Explanation_Scope">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="paralinguistics">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>[=! text]</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#ParalinguisticMaterial_Scope">CHAT
                            manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="sexType">
    <xs:restriction base="xs:NMTOKEN">
      <xs:enumeration value="male"/>
      <xs:enumeration value="female"/>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="pauseSymbolicLengthType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Length of a pause, in nonnumeric terms. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Pause_Marker">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="simple">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>(.)</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Pause_Default_Length">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="long">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>(..)</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Pause_Long_Length">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="very long">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>(...)</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Pause_Very_Long_Length">CHAT
                            manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="pauseNumericLengthType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Pause length, in numeric terms. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Pause_Numeric">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:decimal"/>
  </xs:simpleType>
  <xs:simpleType name="beginEndType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> For use for delimited material. A workaround for lack of overlapping
                elements in XML. </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="begin">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Begin delimited material</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="end">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>End delimited material</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="beginEndSimpleType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> For use for delimited material. A workaround for lack of overlapping
                elements in XML. </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="begin">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Begin delimited material</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="end">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>End delimited material</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="simple">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Begin and end delimited material (degenerate case)</xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="underline">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Mark as underlined arbitrary content, for presentation purposes in CLAN. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Underline">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type" type="beginEndType" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="italic">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Mark as italicized arbitrary content, for presentation purposes in CLAN. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Italic">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type" type="beginEndType" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="long-feature">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Long event. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#LongEvent">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType">
          <xs:attribute name="type" type="beginEndType" use="required"/>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="nonvocal">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Nonvocal material. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#LongNonverbalEvent">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType">
          <xs:attribute name="type" type="beginEndSimpleType" use="required">
            <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
              <xs:documentation> Either begin, end, or simple. </xs:documentation>
              <xs:documentation>
                <a href="https://talkbank.org/0info/manuals/CHAT.html#LongNonverbalEvent">CHAT
                                    manual section on this topic...</a>
              </xs:documentation>
            </xs:annotation>
          </xs:attribute>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="ca-delimiter">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>CA delimited material with begin/end.</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#CA_Delimiters">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type" type="beginEndType" use="required"> </xs:attribute>
      <xs:attribute name="label" type="ca-delimiter-type" use="required"> </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="ca-element">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>CA subwords that must occur inside a word.</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#CA_Subwords">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type" type="ca-element-type" use="required"/>
    </xs:complexType>
  </xs:element>
  <!-- Generated by generate-ca-elements.pl -->
  <xs:simpleType name="ca-element-type">
    <xs:restriction base="xs:string">
      <xs:enumeration value="blocked segments">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>≠</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Blocking_Marker">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="constriction">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>∾</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Constriction_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="hardening">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>⁑</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/chat.html#Hardening_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="hurried start">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>⤇</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/chat.html#HurriedStart_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="inhalation">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>∙</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Inhalation_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="sudden stop">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>⤆</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/chat.html#SuddenStop_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="laugh in word">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Ἡ</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#LaughInWord_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="pitch down">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>↓</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#PitchDown_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="pitch reset">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>↻</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#PitchReset_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="pitch up">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>↑</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#PitchUp_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="primary stress">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>ˈ</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#PrimaryStress_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="secondary stress">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>ˌ</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#SecondaryStress_Element">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!-- Generated by generate-ca-delimiters.pl for talkbank.xsd -->
  <xs:simpleType name="ca-delimiter-type">
    <xs:restriction base="xs:string">
      <xs:enumeration value="breathy voice">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>♋</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#BreathyVoice_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="creaky">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>⁎</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Creaky_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="faster">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>∆</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Faster_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="high-pitch">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>▔</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#HighPitch_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="louder">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>◉</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Louder_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="low-pitch">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>▁</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#LowPitch_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="precise">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>§</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Precise_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="repeated-segment">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>↫</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#RepeatedSegment_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="singing">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>∮</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Singing_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="slower">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>∇</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Slower_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="smile voice">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>☺</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#SmileVoice_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="softer">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>°</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Softer_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="unsure">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>⁇</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Unsure_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="whisper">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>∬</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Whisper_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="yawn">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Ϋ</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Yawn_Delimiter">CHAT manual section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <!-- From XML Schema book -->
  <xs:simpleType name="empty">
    <xs:restriction base="xs:string">
      <xs:enumeration value=""/>
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="pause">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Pause at a point in an utterance. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Pause_Marker">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:element ref="mod" minOccurs="0" maxOccurs="1"/>
        <xs:element ref="pho" minOccurs="0" maxOccurs="1"/>
      </xs:sequence>
      <xs:attribute name="symbolic-length" type="pauseSymbolicLengthType" use="required"/>
      <xs:attribute name="length" type="pauseNumericLengthType" use="optional"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="overlap">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Mark a scope for overlaps. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Overlaps">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="index" type="xs:positiveInteger" use="optional">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Integer label to distinguish among different overlaps over the same text. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Overlaps">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="type" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="overlap follows">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[&gt;]</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#OverlapFollows_Scope">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="overlap precedes">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[&lt;]</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#OverlapPrecedes_Scope">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="overlap-point">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>CA-style overlap</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#CA_Overlaps">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="index" type="xs:positiveInteger" use="optional">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Integer label to distinguish among different overlaps over the same text. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#CA_Overlaps">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="start-end" use="required">
        <xs:simpleType>
          <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
            <xs:documentation>Start or end of overlap</xs:documentation>
            <xs:documentation>
              <a href="https://talkbank.org/0info/manuals/CHAT.html#CA_Overlaps">CHAT manual section
                                on this topic...</a>
            </xs:documentation>
          </xs:annotation>
          <xs:restriction base="xs:string">
            <xs:enumeration value="start">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>Start</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#TopBeginOverlap_Delimiter">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#BottomBeginOverlap_Delimiter">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="end">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>End</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#TopEndOverlap_Delimiter">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#BottomEndOverlap_Delimiter">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="top-bottom" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="top">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation> The first of a set of overlaps. </xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#TopBeginOverlap_Delimiter">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#TopEndOverlap_Delimiter">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="bottom">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation> The second (or third, etc.) of a set of overlaps. </xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#BottomBeginOverlap_Delimiter">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#BottomEndOverlap_Delimiter">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="w">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A word. Note that there are lexical restrictions on what characters are
                allowed in the text of a word. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Word">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Capitalization">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Numbers">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Acronyms">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Titles">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Linkages">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="true">
      <xs:sequence>
        <xs:element ref="langs" minOccurs="0"/>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="overlap-point"/>
          <xs:element ref="underline"/>
          <xs:element ref="italic"/>
          <xs:element ref="shortening"/>
          <xs:element ref="p"/>
          <xs:element ref="long-feature"/>
          <!-- For CA -->
          <xs:element ref="ca-delimiter"/>
          <xs:element ref="ca-element"/>
          <xs:element ref="wk"/>
          <xs:element ref="pos"/>
          <xs:element ref="replacement"/>
          <xs:element ref="mor"/>
        </xs:choice>
        <xs:element ref="mod" minOccurs="0" maxOccurs="1"/>
        <xs:element ref="pho" minOccurs="0" maxOccurs="1"/>
      </xs:sequence>
      <xs:attribute name="user-special-form" type="xs:string">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>@z:code user-specified code</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#User_Special_Form">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="formType">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Form marker: an attribute for a word. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Special_Form_Markers">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="babbling">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@b</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Babbling_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="child-invented">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@c</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#ChildInvented_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="dialect">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@d</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#DialectForm_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="family-specific">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@f</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#FamilySpecificForm_Marker">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="filled pause">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@fp</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#FilledPause_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="generic">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@g</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#GeneralSpecialForm_Marker">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="interjection">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@i</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Interjection_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="kana">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@k</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Kana_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="letter">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@l</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Letter_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="letter plural">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@ls</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Letter_Plural_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="neologism">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@n</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Neologism_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="onomatopoeia">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@o</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Onomatopoeia_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="phonology consistent">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@p</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#PCF_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="quoted metareference">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@q</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#MetalinguisticReference_Marker">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="sign speech">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@sas</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#SignAndSpeech_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="singing">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@si</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Singing_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="signed language">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@sl</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#SignLanguage_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="test">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@t</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#TestWord_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="UNIBET">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@u</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Unibet_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="words to be excluded">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@x</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Excluded_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="word play">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>@wp</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#WordPlay_Marker">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="type">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Optional attribute for a word. </xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="omission">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>0word</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#OmittedWord_Code">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="nonword">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>&amp;~; nonword</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Nonword">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="filler">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>&amp;-; filler</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Filler_Code">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="fragment">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>&amp;+; incomplete</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#PhonologicalFragment_Code">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
      <xs:attribute name="untranscribed">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>Mark as untranscribed non-word.</xs:documentation>
        </xs:annotation>
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="unintelligible">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>xxx</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#UnintelligibleSpeech_Code">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="unintelligible-with-pho">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>yyy</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#PhonologicalCoding_Code">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="untranscribed">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>www</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#UntranscribedMaterial_Code">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="g">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A group of material that is annotated. May be nested, i.e., a group may
                contain groups as well as words and other material. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Group">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="w"/>
          <xs:element ref="g"/>
          <xs:element ref="pg"/>
          <xs:element ref="sg"/>
          <xs:element ref="quotation"/>
          <xs:element ref="pause"/>
          <xs:element ref="internal-media"/>
          <xs:element ref="freecode"/>
          <xs:element ref="e"/>
          <xs:element ref="s"/>
          <xs:element ref="tagMarker"/>
          <xs:element ref="long-feature"/>
          <xs:element ref="nonvocal"/>
          <xs:element ref="overlap-point"/>
          <xs:element ref="underline"/>
          <xs:element ref="italic"/>
        </xs:choice>
        <!-- optional -->
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="k"/>
          <xs:element ref="error"/>
          <xs:element ref="duration"/>
          <xs:element ref="ga"/>
          <xs:element ref="overlap"/>
        </xs:choice>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="replacement">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> [: word1 ...]; indicate replacement of a word by one or more words instead. [:: word1 ...] to indicate that the word is a real word</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Replacements">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Replacement_Scope">CHAT manual section
                    on this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Assimilations">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#DialectalVariations">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:element ref="w" minOccurs="1" maxOccurs="unbounded"/>
      </xs:sequence>
      <xs:attribute name="real" type="xs:boolean">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation>[:: word1 ...] indicates that the word was real and MOR should analyze it</xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Replacement_Real">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="mor">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A group of words in %mor or %trn or %umor. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Morphological_Tier">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Training_Tier">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:complexContent>
        <xs:extension base="morphemicBaseType">
          <xs:sequence>
            <xs:element ref="mor-pre" minOccurs="0" maxOccurs="unbounded"/>
            <xs:element ref="mor-post" minOccurs="0" maxOccurs="unbounded"/>
          </xs:sequence>
          <xs:attribute name="type" type="nonemptyStringType" use="required"/>
          <xs:attribute name="omitted" type="xs:boolean"/>
        </xs:extension>
      </xs:complexContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="gra">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>GRASP data for a single word in %gra or %grt or %ugra</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#GrammaticalRelations_Tier">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#GrammaticalRelationsTraining_Tier">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <!-- TODO preliminary, without internal references -->
    <xs:complexType mixed="false">
      <xs:attribute name="type" type="nonemptyStringType" use="required"/>
      <xs:attribute name="index" type="xs:int" use="required"/>
      <xs:attribute name="head" type="xs:int" use="required"/>
      <xs:attribute name="relation" type="nonemptyStringType" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="quotation">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Begin or end quoted material; “ and ”</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Quotation">CHAT manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="mor"/>
      </xs:sequence>
      <xs:attribute name="type" type="beginEndType" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="k">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Retracing and other markers. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Markers">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="stressing">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[!]</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Stressing_Scope">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="contrastive stressing">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[!!]</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#ContrastiveStressing_Scope">CHAT manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="best guess">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[?] in CHAT, ( text ) in CA</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#BestGuess_Scope">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="retracing">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[/] in CHAT</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Repetition_Scope">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="retracing with correction">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[//] in CHAT, - in CA</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Retracing_Scope">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="retracing reformulation">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[///] in CHAT</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Reformulation_Scope">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="retracing unclear">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[/?]</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#UnclearRetracing_Scope">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="false start">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[/-]</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#FalseStart_Scope">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="mor exclude">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[e]</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#MorExclude_Scope">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="duration" type="pauseNumericLengthType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>[# ...] duration annotation</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Duration_Scope">CHAT manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="s">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Separator or tone direction marker. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Separators">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#ToneDirection_Marker">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type" use="required">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="semicolon">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>;</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Semicolon">CHAT manual section
                                        on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="colon">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>:</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Colon">CHAT manual section on
                                        this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="clause delimiter">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>[c] clause-delimiter;</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#ClauseDelimiter_Scope">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="rising to high">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>⇗</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#RisingToHigh">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="rising to mid">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>↗</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#RisingToMid">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="level">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>→</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Level">CHAT manual section on
                                        this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="falling to mid">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>↘</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#FallingToMid">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="falling to low">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>⇘</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#FallingToLow">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="unmarked ending">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>∞</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#UnmarkedEnding">CHAT manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="uptake">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>≡</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Uptake">CHAT manual section
                                        on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="mediaTypesType">
    <xs:list itemType="mediaTypeType"/>
  </xs:simpleType>
  <xs:simpleType name="videosType">
    <xs:list itemType="mediaRefType"/>
  </xs:simpleType>
  <xs:simpleType name="speakerID">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Legal speaker ID for identifying utterances. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Speaker_ID">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="nonemptyStringType"> </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="optionType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Transcript-scoped option that affects the interpretation of the transcript. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Options_Header">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="CA">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Allows CA features and restriction relaxations. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#CA_Option">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="CA-Unicode">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Allows CA features and restriction relaxations, but does not automatically open CAFont. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#CA_Unicode_Option">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="bullets">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Turns off checking of time sequence of bullets. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Bullets_Option">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="heritage">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Allows a transcript to be accepted even though it is not properly
                        parsable yet. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Heritage_Option">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="multi">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Purely for the display purposes of CLAN, in order to have CLAN handle
                        multiple media bullets in a single utterance. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Multi_Option">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="IPA">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> IPA. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#IPA_Option">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
      <xs:enumeration value="dummy">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Mark file as dummy for CLAN CHECK. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Dummy_Option">CHAT manual section
                            on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:enumeration>
    </xs:restriction>
  </xs:simpleType>
  <xs:simpleType name="optionsType">
    <xs:list itemType="optionType"/>
  </xs:simpleType>
  <xs:element name="mediaPic">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>A reference to a graphics file.</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#PicBullet">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="href" type="xs:anyURI"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="otherSpokenEvent">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> &amp;*WHO=word; word spoken by someone else during an utterance. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#InterposedWords">CHAT manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="who" type="speakerID" use="required"/>
      <xs:attribute name="said" type="nonemptyStringType" use="required"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="mk">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>morphemes</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Markers">MOR manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType">
          <xs:attribute name="type" use="required">
            <xs:simpleType>
              <xs:restriction base="xs:string">
                <xs:enumeration value="sfx">
                  <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                    <xs:documentation> suffix marker, CHAT equivalent is -suffix </xs:documentation>
                    <xs:documentation>
                      <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Markers_Suffix">MOR
                                                manual section on this topic...</a>
                    </xs:documentation>
                  </xs:annotation>
                </xs:enumeration>
                <xs:enumeration value="sfxf">
                  <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                    <xs:documentation> suffix fusion marker, CHAT equivalent is &amp;suffix </xs:documentation>
                    <xs:documentation>
                      <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Markers_Suffix_Fusional">MOR manual section on this topic...</a>
                    </xs:documentation>
                  </xs:annotation>
                </xs:enumeration>
                <xs:enumeration value="mc">
                  <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                    <xs:documentation> morphological category, CHAT equivalent is :suffix </xs:documentation>
                    <xs:documentation>
                      <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Markers_Category">MOR
                                                manual section on this topic...</a>
                    </xs:documentation>
                  </xs:annotation>
                </xs:enumeration>
              </xs:restriction>
            </xs:simpleType>
          </xs:attribute>
        </xs:extension>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="menx">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Morphemic translation: =word</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Translation">MOR manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType"/>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="mpfx">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Morphemix prefix: word#</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Prefix">MOR manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType"/>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="pos">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>%mor part of speech</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_POS">MOR manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:element ref="c"/>
        <!-- TODO should change from "s" to something else -->
        <xs:element name="s" type="nonemptyStringType" minOccurs="0" maxOccurs="unbounded">
          <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
            <xs:documentation>%mor POS subcategory</xs:documentation>
            <xs:documentation>
              <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Subcategory">MOR manual
                                section on this topic...</a>
            </xs:documentation>
          </xs:annotation>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="mw">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Morphemic "word": the unit of a %mor line corresponding to a single non-compound word on the
                main line. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#Mor_Simple_Word">MOR manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:element ref="mpfx" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element ref="pos"/>
        <xs:element ref="stem"/>
        <!-- TODO suffix-->
        <xs:element ref="mk" minOccurs="0" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="mwc">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Morphemic "compound word" using +</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#MorphologicalCompound">MOR manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:element ref="mpfx" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element ref="pos"/>
        <xs:element ref="mw" minOccurs="2" maxOccurs="unbounded"/>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
  <xs:element name="shortening">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Unspoken segment in a word, coded in CHAT
                by surrounding parentheses. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Shortenings">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Noncompletion_Code">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:simpleContent>
        <xs:extension base="nonemptyStringType"/>
      </xs:simpleContent>
    </xs:complexType>
  </xs:element>
  <xs:element name="p">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Prosody inside a word: stress, blocking etc.</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Prosody">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="drawl">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>:</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#Lengthening_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="pause">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>^ internal</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/CHAT.html#WordInternalPause_Marker">CHAT
                                        manual section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="wk">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Clitic or compound marker inside a word. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Compounds">CHAT manual section on this
                    topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:attribute name="type">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="cmp">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>compound, CHAT +</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/MOR.html#SimpleCompound">MOR manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
            <xs:enumeration value="cli">
              <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
                <xs:documentation>clitic, CHAT ~</xs:documentation>
                <xs:documentation>
                  <a href="https://talkbank.org/0info/manuals/MOR.html#Clitic_Compound">MOR manual
                                        section on this topic...</a>
                </xs:documentation>
              </xs:annotation>
            </xs:enumeration>
          </xs:restriction>
        </xs:simpleType>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="c" type="nonemptyStringType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Morphological category</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#MorphologicalCategory">MOR manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="stem" type="nonemptyStringType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>Morphological stem, alphanumeric</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/MOR.html#MorphologicalStem">MOR manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
  </xs:element>
  <xs:element name="error">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>[*] or [* text]</xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#ErrorMarking_Scope">CHAT manual
                    section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:simpleType>
      <xs:restriction base="xs:string"/>
    </xs:simpleType>
  </xs:element>
  <xs:element name="a">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Dependent tier: scoped annotation that applies to a whole utterance. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#DependentTiers">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="true">
      <xs:choice minOccurs="0" maxOccurs="unbounded">
        <xs:element ref="media"/>
        <xs:element ref="mediaPic"/>
      </xs:choice>
      <xs:attribute name="flavor" type="nonemptyStringType" use="optional">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Open-ended user-specifiable annotation subtype. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#User_Tier">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="type" type="annotationTypeType"/>
      <!-- MUN (4 Mar 2005): Added an optional 'who' attribute -->
      <xs:attribute name="who" type="nonemptyStringType" use="optional">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> Allows for identification of a user who made this annotation. (Not
                        currently supported in CHAT.) </xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="ga">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Inlined dependent tier: scoped annotation that applies to a group. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Group_Scopes">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="true">
      <xs:attribute name="type" type="groupAnnotationTypeType"/>
    </xs:complexType>
  </xs:element>
  <xs:element name="u">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> A single utterance, along with all dependent information. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Utterances">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:element ref="linker" minOccurs="0" maxOccurs="unbounded"/>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="w"/>
          <xs:element ref="g"/>
          <xs:element ref="pg"/>
          <xs:element ref="sg"/>
          <xs:element ref="quotation"/>
          <xs:element ref="pause"/>
          <xs:element ref="internal-media" minOccurs="0"/>
          <xs:element ref="freecode"/>
          <xs:element ref="e"/>
          <xs:element ref="s"/>
          <xs:element ref="tagMarker"/>
          <xs:element ref="overlap-point"/>
          <xs:element ref="underline"/>
          <xs:element ref="italic"/>
          <xs:element ref="long-feature"/>
          <xs:element ref="nonvocal"/>
        </xs:choice>
        <xs:element ref="t"/>
        <xs:element ref="postcode" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element ref="media" minOccurs="0"/>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="k"/>
          <xs:element ref="error"/>
          <xs:element ref="a"/>
          <xs:element ref="wor"/>
        </xs:choice>
      </xs:sequence>
      <xs:attribute ref="xml:lang">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The language the entire utterance is in (unless individual words'
                        languages are overridden explicitly). </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Language_Precode">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <xs:attribute name="who" type="speakerID" use="required">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The speaker of the utterance. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Utterance_Speaker_Code">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
      <!-- GJH 2010-12-20
             * Removed attribute 'type'
             <xs:attribute name="type" type="utteranceTypeType" use="optional"/>
        -->
      <xs:attribute name="uID" type="xs:ID" use="required">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> A unique ID is provided for each utterance in a transcript, for use by
                        tools. Note that the text format of CHAT does not currently support this, and CLAN does
                        not know about it. </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Utterance_ID">CHAT manual section on
                            this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:element name="wor">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> %wor dependent tier, similar to main tier. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Wor_Tier">CHAT manual section on
                    this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:complexType mixed="false">
      <xs:sequence>
        <xs:element ref="linker" minOccurs="0" maxOccurs="unbounded"/>
        <xs:choice maxOccurs="unbounded">
          <xs:element ref="w"/>
          <xs:element ref="g"/>
          <xs:element ref="pg"/>
          <xs:element ref="sg"/>
          <xs:element ref="quotation"/>
          <xs:element ref="pause"/>
          <xs:element ref="internal-media" minOccurs="0"/>
          <xs:element ref="freecode"/>
          <xs:element ref="e"/>
          <xs:element ref="s"/>
          <xs:element ref="tagMarker"/>
          <xs:element ref="overlap-point"/>
          <xs:element ref="underline"/>
          <xs:element ref="italic"/>
          <xs:element ref="long-feature"/>
          <xs:element ref="nonvocal"/>
        </xs:choice>
        <xs:element ref="t"/>
        <xs:element ref="postcode" minOccurs="0" maxOccurs="unbounded"/>
        <xs:element ref="media" minOccurs="0"/>
        <xs:choice minOccurs="0" maxOccurs="unbounded">
          <xs:element ref="k"/>
          <xs:element ref="error"/>
          <xs:element ref="a"/>
        </xs:choice>
      </xs:sequence>
      <xs:attribute ref="xml:lang">
        <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
          <xs:documentation> The language the entire utterance is in (unless individual words'
                        languages are overridden explicitly). </xs:documentation>
          <xs:documentation>
            <a href="https://talkbank.org/0info/manuals/CHAT.html#Language_Precode">CHAT manual
                            section on this topic...</a>
          </xs:documentation>
        </xs:annotation>
      </xs:attribute>
    </xs:complexType>
  </xs:element>
  <xs:simpleType name="languageType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation> Language code restricted to only three instead of one to eight characters. </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Languages_Header">CHAT manual section
                    on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:language">
      <xs:pattern value="[a-zA-Z]{3}(-[a-zA-Z0-9]{1,8})*"/>
    </xs:restriction>
  </xs:simpleType>
  <!-- Generated by get-participant-roles.pl for schema -->
  <xs:simpleType name="roleType">
    <xs:annotation xmlns="http://www.w3.org/1999/xhtml">
      <xs:documentation>
                Allowable roles.
            </xs:documentation>
      <xs:documentation>
        <a href="https://talkbank.org/0info/manuals/CHAT.html#Role">CHAT manual section on this topic...</a>
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:enumeration value="Target_Child"/>
      <xs:enumeration value="Target_Adult"/>
      <xs:enumeration value="Child"/>
      <xs:enumeration value="Mother"/>
      <xs:enumeration value="Father"/>
      <xs:enumeration value="Brother"/>
      <xs:enumeration value="Sister"/>
      <xs:enumeration value="Sibling"/>
      <xs:enumeration value="Grandfather"/>
      <xs:enumeration value="Grandmother"/>
      <xs:enumeration value="Relative"/>
      <xs:enumeration value="Participant"/>
      <xs:enumeration value="Therapist"/>
      <xs:enumeration value="Informant"/>
      <xs:enumeration value="Subject"/>
      <xs:enumeration value="Investigator"/>
      <xs:enumeration value="Partner"/>
      <xs:enumeration value="Boy"/>
      <xs:enumeration value="Girl"/>
      <xs:enumeration value="Adult"/>
      <xs:enumeration value="Teenager"/>
      <xs:enumeration value="Male"/>
      <xs:enumeration value="Female"/>
      <xs:enumeration value="Visitor"/>
      <xs:enumeration value="Friend"/>
      <xs:enumeration value="Playmate"/>
      <xs:enumeration value="Caretaker"/>
      <xs:enumeration value="Environment"/>
      <xs:enumeration value="Group"/>
      <xs:enumeration value="Unidentified"/>
      <xs:enumeration value="Uncertain"/>
      <xs:enumeration value="Other"/>
      <xs:enumeration value="Text"/>
      <xs:enumeration value="Media"/>
      <xs:enumeration value="PlayRole"/>
      <xs:enumeration value="LENA"/>
      <xs:enumeration value="Justice"/>
      <xs:enumeration value="Attorney"/>
      <xs:enumeration value="Doctor"/>
      <xs:enumeration value="Nurse"/>
      <xs:enumeration value="Student"/>
      <xs:enumeration value="Teacher"/>
      <xs:enumeration value="Host"/>
      <xs:enumeration value="Guest"/>
      <xs:enumeration value="Leader"/>
      <xs:enumeration value="Member"/>
      <xs:enumeration value="Narrator"/>
      <xs:enumeration value="Speaker"/>
      <xs:enumeration value="Audience"/>
    </xs:restriction>
  </xs:simpleType>
  <!-- End generated by get-participant-roles.pl for schema -->
</xs:schema>
