Permalink
Fetching contributors…
Cannot retrieve contributors at this time
11941 lines (11713 sloc) 350 KB
<grammar xmlns:folia="http://ilk.uvt.nl/folia" xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<!--
RelaxNG schema for FoLiA XML v1.5.0
by Maarten van Gompel
Induction of Linguistic Knowledge Research group
Tilburg University
http://ilk.uvt.nl/folia
http://github.com/proycon/folia
Schema version 1.5.0.87
(auto-generated by pynlpl.formats.folia)
Validation examples:
$ xmllint ‒‒relaxng folia.rng foliadocument.xml
$ jing folia.rng foliadocument.xml
However, it is recommended to use the foliavalidator tool instead,
as it does extra validation that can not be captured by RelaxNG!
$ foliavalidator foliadocument.xml
Licensed under the GNU General Public License v3
-->
<start>
<element name="FoLiA" ns="http://ilk.uvt.nl/folia">
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace"/>
<optional>
<attribute name="version"/>
</optional>
<optional>
<attribute name="generator"/>
</optional>
<element name="metadata">
<optional>
<attribute name="type"/>
</optional>
<optional>
<attribute name="src"/>
</optional>
<element name="annotations">
<zeroOrMore>
<choice>
<element name="text-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="token-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="division-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="paragraph-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="list-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="figure-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="whitespace-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="linebreak-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="sentence-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="pos-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="lemma-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="domain-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="sense-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="syntax-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="chunking-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="entity-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="correction-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="errordetection-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="phon-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="subjectivity-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="morphological-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="event-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="dependency-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="timesegment-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="gap-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="note-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="alignment-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="complexalignment-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="coreference-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="semrole-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="metric-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="lang-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="string-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="table-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="style-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="part-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="utterance-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="entry-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="term-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="definition-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="example-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="phonological-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="predicate-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="observation-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="sentiment-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
<element name="statement-annotation">
<optional>
<attribute name="set"/>
</optional>
<optional>
<attribute name="annotator"/>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="datetime"/>
</optional>
</element>
</choice>
</zeroOrMore>
</element>
<zeroOrMore>
<element name="meta">
<attribute name="id"/>
<text/>
</element>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<element name="submetadata">
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace"/>
<optional>
<attribute name="type"/>
</optional>
<optional>
<attribute name="src"/>
</optional>
<zeroOrMore>
<element name="meta">
<attribute name="id"/>
<text/>
</element>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
</element>
</zeroOrMore>
</element>
<interleave>
<zeroOrMore>
<ref name="text"/>
</zeroOrMore>
<zeroOrMore>
<ref name="speech"/>
</zeroOrMore>
</interleave>
</element>
</start>
<define name="any_content">
<interleave>
<zeroOrMore>
<ref name="any_element"/>
</zeroOrMore>
<text/>
</interleave>
</define>
<define name="any_element">
<element>
<anyName/>
<zeroOrMore>
<ref name="any_attribute"/>
</zeroOrMore>
<zeroOrMore>
<ref name="any_content"/>
</zeroOrMore>
</element>
</define>
<define name="any_attribute">
<attribute>
<anyName/>
</attribute>
</define>
<define name="allow_foreign_attributes">
<zeroOrMore>
<attribute>
<anyName>
<except>
<nsName/>
<nsName ns=""/>
<nsName ns="http://www.w3.org/XML/1998/namespace"/>
<nsName ns="http://www.w3.org/1999/xlink"/>
</except>
</anyName>
</attribute>
</zeroOrMore>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="desc" ns="http://ilk.uvt.nl/folia">
<element name="desc">
<text/>
<a:documentation>Description is an element that can be used to associate a description with almost any other FoLiA element</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="comment" ns="http://ilk.uvt.nl/folia">
<element name="comment">
<text/>
<a:documentation>Comment is an element that can be used to associate a comment with almost any other FoLiA element</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="t-str" ns="http://ilk.uvt.nl/folia">
<element name="t-str">
<a:documentation>Markup element to mark arbitrary substrings in text content (:class:`TextContent`)</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="href" ns="http://www.w3.org/1999/xlink"/>
<attribute name="type" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="role" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="title" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="label" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="show" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="id"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<text/>
<zeroOrMore>
<ref name="t-str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-gap"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-correction"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-error"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-style"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="t-gap" ns="http://ilk.uvt.nl/folia">
<element name="t-gap">
<a:documentation>Markup element to mark gaps in text content (:class:`TextContent`)
Only consider this element for gaps in spans of untokenised text. The use of structural element :class:`Gap` is preferred.
</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="href" ns="http://www.w3.org/1999/xlink"/>
<attribute name="type" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="role" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="title" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="label" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="show" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="id"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<text/>
<zeroOrMore>
<ref name="t-str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-gap"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-correction"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-error"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-style"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="t-correction" ns="http://ilk.uvt.nl/folia">
<element name="t-correction">
<a:documentation>Markup element to mark corrections in text content (:class:`TextContent`).
Only consider this element for corrections on untokenised text. The use of :class:`Correction` is preferred.
</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="href" ns="http://www.w3.org/1999/xlink"/>
<attribute name="type" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="role" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="title" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="label" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="show" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="original"/>
</optional>
<optional>
<attribute name="id"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<text/>
<zeroOrMore>
<ref name="t-str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-gap"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-correction"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-error"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-style"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="t-error" ns="http://ilk.uvt.nl/folia">
<element name="t-error">
<a:documentation>Markup element to mark gaps in text content (:class:`TextContent`)
Only consider this element for gaps in spans of untokenised text. The use of structural element :class:`ErrorDetection` is preferred.
</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="href" ns="http://www.w3.org/1999/xlink"/>
<attribute name="type" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="role" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="title" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="label" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="show" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="id"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<text/>
<zeroOrMore>
<ref name="t-str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-gap"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-correction"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-error"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-style"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="t-style" ns="http://ilk.uvt.nl/folia">
<element name="t-style">
<a:documentation>Markup element to style text content (:class:`TextContent`), e.g. make text bold, italics, underlined, coloured, etc..</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="href" ns="http://www.w3.org/1999/xlink"/>
<attribute name="type" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="role" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="title" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="label" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="show" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="id"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<text/>
<zeroOrMore>
<ref name="t-str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-gap"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-correction"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-error"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-style"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="t" ns="http://ilk.uvt.nl/folia">
<element name="t">
<a:documentation>Text content element (``t``), holds text to be associated with whatever element the text content element is a child of.
Text content elements
on structure elements like :class:`Paragraph` and :class:`Sentence` are by definition untokenised. Only on :class:`Word`` level and deeper they are by definition tokenised.
Text content elements can specify offset that refer to text at a higher parent level. Use the following keyword arguments:
* ``ref=``: The instance to point to, this points to the element holding the text content element, not the text content element itself.
* ``offset=``: The offset where this text is found, offsets start at 0
</a:documentation>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="href" ns="http://www.w3.org/1999/xlink"/>
<attribute name="type" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="role" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="title" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="label" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="show" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="offset"/>
</optional>
<optional>
<attribute name="ref"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<text/>
<zeroOrMore>
<ref name="t-str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-gap"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-correction"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-error"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t-style"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="ph" ns="http://ilk.uvt.nl/folia">
<element name="ph">
<a:documentation>Phonetic content element (``ph``), holds a phonetic representation to be associated with whatever element the phonetic content element is a child of.
Phonetic content elements behave much like text content elements.
Phonetic content elements can specify offset that refer to phonetic content at a higher parent level. Use the following keyword arguments:
* ``ref=``: The instance to point to, this points to the element holding the text content element, not the text content element itself.
* ``offset=``: The offset where this text is found, offsets start at 0
</a:documentation>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="offset"/>
</optional>
<optional>
<attribute name="ref"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<text/>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
</interleave>
</element>
</define>
<define name="content" ns="http://ilk.uvt.nl/folia">
<element name="content">
<text/>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="part" ns="http://ilk.uvt.nl/folia">
<element name="part">
<a:documentation>Generic structure element used to mark a part inside another block.
Do **not** use this for morphology, use :class:`Morpheme` instead.
</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="syntax"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunking"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entities"/>
</zeroOrMore>
<zeroOrMore>
<ref name="dependencies"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morphology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phonology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferences"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semroles"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statements"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observations"/>
</zeroOrMore>
<zeroOrMore>
<ref name="complexalignments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timing"/>
</zeroOrMore>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lang"/>
</zeroOrMore>
<zeroOrMore>
<ref name="domain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="whitespace"/>
</zeroOrMore>
<zeroOrMore>
<ref name="w"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morpheme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phoneme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="def"/>
</zeroOrMore>
<zeroOrMore>
<ref name="term"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ex"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entry"/>
</zeroOrMore>
<zeroOrMore>
<ref name="quote"/>
</zeroOrMore>
<zeroOrMore>
<ref name="s"/>
</zeroOrMore>
<zeroOrMore>
<ref name="utt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="event"/>
</zeroOrMore>
<optional>
<ref name="caption"/>
</optional>
<zeroOrMore>
<ref name="label"/>
</zeroOrMore>
<zeroOrMore>
<ref name="item"/>
</zeroOrMore>
<zeroOrMore>
<ref name="listitem"/>
</zeroOrMore>
<zeroOrMore>
<ref name="list"/>
</zeroOrMore>
<zeroOrMore>
<ref name="figure"/>
</zeroOrMore>
<optional>
<ref name="head"/>
</optional>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="cell"/>
</zeroOrMore>
<zeroOrMore>
<ref name="row"/>
</zeroOrMore>
<zeroOrMore>
<ref name="tablehead"/>
</zeroOrMore>
<zeroOrMore>
<ref name="table"/>
</zeroOrMore>
<zeroOrMore>
<ref name="div"/>
</zeroOrMore>
<zeroOrMore>
<ref name="speech"/>
</zeroOrMore>
<zeroOrMore>
<ref name="text"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alignment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="altlayers"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ph"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="gap" ns="http://ilk.uvt.nl/folia">
<element name="gap">
<a:documentation>Gap element, represents skipped portions of the text.
Usually contains :class:`Content` and possibly also a :class:`Description` element</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="content"/>
</optional>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="br" ns="http://ilk.uvt.nl/folia">
<element name="br">
<a:documentation>Line break element, signals a line break.
This element acts both as a structure element as well as a text markup element.
</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="href" ns="http://www.w3.org/1999/xlink"/>
<attribute name="type" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="role" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="title" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="label" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="show" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="pagenr"/>
</optional>
<optional>
<attribute name="linenr"/>
</optional>
<optional>
<attribute name="newpage"/>
</optional>
<optional>
<attribute name="id"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<text/>
<zeroOrMore>
<ref name="syntax"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunking"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entities"/>
</zeroOrMore>
<zeroOrMore>
<ref name="dependencies"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morphology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phonology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferences"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semroles"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statements"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observations"/>
</zeroOrMore>
<zeroOrMore>
<ref name="complexalignments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timing"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alignment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="altlayers"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="whitespace" ns="http://ilk.uvt.nl/folia">
<element name="whitespace">
<a:documentation>Whitespace element, signals a vertical whitespace</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="syntax"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunking"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entities"/>
</zeroOrMore>
<zeroOrMore>
<ref name="dependencies"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morphology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phonology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferences"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semroles"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statements"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observations"/>
</zeroOrMore>
<zeroOrMore>
<ref name="complexalignments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timing"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alignment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="altlayers"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="w" ns="http://ilk.uvt.nl/folia">
<element name="w">
<a:documentation>Word (aka token) element. Holds a word/token and all its related token annotations.</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="textclass"/>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="space"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="syntax"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunking"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entities"/>
</zeroOrMore>
<zeroOrMore>
<ref name="dependencies"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morphology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phonology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferences"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semroles"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statements"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observations"/>
</zeroOrMore>
<zeroOrMore>
<ref name="complexalignments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timing"/>
</zeroOrMore>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="pos"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lemma"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lang"/>
</zeroOrMore>
<zeroOrMore>
<ref name="domain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sense"/>
</zeroOrMore>
<zeroOrMore>
<ref name="subjectivity"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alignment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="altlayers"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ph"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="feat" ns="http://ilk.uvt.nl/folia">
<element name="feat">
<attribute name="subset"/>
<attribute name="class"/>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="metric" ns="http://ilk.uvt.nl/folia">
<element name="metric">
<a:documentation>Metric elements provide a key/value pair to allow the annotation of any kind of metric with any kind of annotation element.
It is used for example for statistical measures to be added to elements as annotation.</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<optional>
<attribute name="value"/>
</optional>
<interleave>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="str" ns="http://ilk.uvt.nl/folia">
<element name="str">
<a:documentation>String</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lang"/>
</zeroOrMore>
<zeroOrMore>
<ref name="domain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alignment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ph"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="ref" ns="http://ilk.uvt.nl/folia">
<element name="ref">
<a:documentation>A structural element that denotes a reference, internal or external. Examples are references to footnotes, bibliographies, hyperlinks.</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<attribute name="id"/>
<optional>
<attribute name="type"/>
</optional>
<optional>
<attribute name="format"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="syntax"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunking"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entities"/>
</zeroOrMore>
<zeroOrMore>
<ref name="dependencies"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morphology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phonology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferences"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semroles"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statements"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observations"/>
</zeroOrMore>
<zeroOrMore>
<ref name="complexalignments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timing"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alignment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="altlayers"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ph"/>
</zeroOrMore>
<zeroOrMore>
<ref name="quote"/>
</zeroOrMore>
<zeroOrMore>
<ref name="s"/>
</zeroOrMore>
<zeroOrMore>
<ref name="str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t"/>
</zeroOrMore>
<zeroOrMore>
<ref name="utt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="whitespace"/>
</zeroOrMore>
<zeroOrMore>
<ref name="w"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="aref" ns="http://ilk.uvt.nl/folia">
<element name="aref">
<attribute name="id">
<text/>
</attribute>
<optional>
<attribute name="t">
<text/>
</attribute>
</optional>
<optional>
<attribute name="type">
<text/>
</attribute>
</optional>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="alignment" ns="http://ilk.uvt.nl/folia">
<element name="alignment">
<a:documentation>
The Alignment element is a form of higher-order annotation taht is used to point to an external resource.
It concerns references as annotation rather than references which are
explicitly part of the text, such as hyperlinks and :class:`Reference`.
Inside the Alignment element, the :class:`AlignReference` element may be used to point to specific elements (multiple denotes a span).
</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="href" ns="http://www.w3.org/1999/xlink"/>
<attribute name="type" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="role" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="title" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="label" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="show" ns="http://www.w3.org/1999/xlink"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="format"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="aref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="errordetection" ns="http://ilk.uvt.nl/folia">
<element name="errordetection">
<a:documentation>The ErrorDetection element is used to signal the presence of errors in a structural element.</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="textclass"/>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="suggestion" ns="http://ilk.uvt.nl/folia">
<element name="suggestion">
<a:documentation>Suggestions are used in the context of :class:`Correction`, but rather than provide an authoritative correction, it instead offers a suggestion for correction.</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<optional>
<attribute name="split"/>
</optional>
<optional>
<attribute name="merge"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="su"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunk"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entity"/>
</zeroOrMore>
<optional>
<ref name="hd"/>
</optional>
<optional>
<ref name="dep"/>
</optional>
<optional>
<ref name="source"/>
</optional>
<optional>
<ref name="target"/>
</optional>
<optional>
<ref name="relation"/>
</optional>
<zeroOrMore>
<ref name="dependency"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferencelink"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferencechain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semrole"/>
</zeroOrMore>
<zeroOrMore>
<ref name="predicate"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statement"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observation"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timesegment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="whitespace"/>
</zeroOrMore>
<zeroOrMore>
<ref name="w"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morpheme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phoneme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="def"/>
</zeroOrMore>
<zeroOrMore>
<ref name="term"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ex"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entry"/>
</zeroOrMore>
<zeroOrMore>
<ref name="quote"/>
</zeroOrMore>
<zeroOrMore>
<ref name="s"/>
</zeroOrMore>
<zeroOrMore>
<ref name="utt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="event"/>
</zeroOrMore>
<optional>
<ref name="caption"/>
</optional>
<zeroOrMore>
<ref name="label"/>
</zeroOrMore>
<zeroOrMore>
<ref name="item"/>
</zeroOrMore>
<zeroOrMore>
<ref name="listitem"/>
</zeroOrMore>
<zeroOrMore>
<ref name="list"/>
</zeroOrMore>
<zeroOrMore>
<ref name="figure"/>
</zeroOrMore>
<optional>
<ref name="head"/>
</optional>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="cell"/>
</zeroOrMore>
<zeroOrMore>
<ref name="row"/>
</zeroOrMore>
<zeroOrMore>
<ref name="tablehead"/>
</zeroOrMore>
<zeroOrMore>
<ref name="table"/>
</zeroOrMore>
<zeroOrMore>
<ref name="div"/>
</zeroOrMore>
<zeroOrMore>
<ref name="speech"/>
</zeroOrMore>
<zeroOrMore>
<ref name="text"/>
</zeroOrMore>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="pos"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lemma"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lang"/>
</zeroOrMore>
<zeroOrMore>
<ref name="domain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sense"/>
</zeroOrMore>
<zeroOrMore>
<ref name="subjectivity"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ph"/>
</zeroOrMore>
<zeroOrMore>
<ref name="str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="new" ns="http://ilk.uvt.nl/folia">
<element name="new">
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="su"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunk"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entity"/>
</zeroOrMore>
<optional>
<ref name="hd"/>
</optional>
<optional>
<ref name="dep"/>
</optional>
<optional>
<ref name="source"/>
</optional>
<optional>
<ref name="target"/>
</optional>
<optional>
<ref name="relation"/>
</optional>
<zeroOrMore>
<ref name="dependency"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferencelink"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferencechain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semrole"/>
</zeroOrMore>
<zeroOrMore>
<ref name="predicate"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statement"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observation"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timesegment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="whitespace"/>
</zeroOrMore>
<zeroOrMore>
<ref name="w"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morpheme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phoneme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="def"/>
</zeroOrMore>
<zeroOrMore>
<ref name="term"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ex"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entry"/>
</zeroOrMore>
<zeroOrMore>
<ref name="quote"/>
</zeroOrMore>
<zeroOrMore>
<ref name="s"/>
</zeroOrMore>
<zeroOrMore>
<ref name="utt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="event"/>
</zeroOrMore>
<optional>
<ref name="caption"/>
</optional>
<zeroOrMore>
<ref name="label"/>
</zeroOrMore>
<zeroOrMore>
<ref name="item"/>
</zeroOrMore>
<zeroOrMore>
<ref name="listitem"/>
</zeroOrMore>
<zeroOrMore>
<ref name="list"/>
</zeroOrMore>
<zeroOrMore>
<ref name="figure"/>
</zeroOrMore>
<optional>
<ref name="head"/>
</optional>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="cell"/>
</zeroOrMore>
<zeroOrMore>
<ref name="row"/>
</zeroOrMore>
<zeroOrMore>
<ref name="tablehead"/>
</zeroOrMore>
<zeroOrMore>
<ref name="table"/>
</zeroOrMore>
<zeroOrMore>
<ref name="div"/>
</zeroOrMore>
<zeroOrMore>
<ref name="speech"/>
</zeroOrMore>
<zeroOrMore>
<ref name="text"/>
</zeroOrMore>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="pos"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lemma"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lang"/>
</zeroOrMore>
<zeroOrMore>
<ref name="domain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sense"/>
</zeroOrMore>
<zeroOrMore>
<ref name="subjectivity"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ph"/>
</zeroOrMore>
<zeroOrMore>
<ref name="str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="original" ns="http://ilk.uvt.nl/folia">
<element name="original">
<a:documentation>Used in the context of :class:`Correction` to encapsulate the original annotations *prior* to correction.</a:documentation>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="su"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunk"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entity"/>
</zeroOrMore>
<optional>
<ref name="hd"/>
</optional>
<optional>
<ref name="dep"/>
</optional>
<optional>
<ref name="source"/>
</optional>
<optional>
<ref name="target"/>
</optional>
<optional>
<ref name="relation"/>
</optional>
<zeroOrMore>
<ref name="dependency"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferencelink"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferencechain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semrole"/>
</zeroOrMore>
<zeroOrMore>
<ref name="predicate"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statement"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observation"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timesegment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="whitespace"/>
</zeroOrMore>
<zeroOrMore>
<ref name="w"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morpheme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phoneme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="def"/>
</zeroOrMore>
<zeroOrMore>
<ref name="term"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ex"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entry"/>
</zeroOrMore>
<zeroOrMore>
<ref name="quote"/>
</zeroOrMore>
<zeroOrMore>
<ref name="s"/>
</zeroOrMore>
<zeroOrMore>
<ref name="utt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="event"/>
</zeroOrMore>
<optional>
<ref name="caption"/>
</optional>
<zeroOrMore>
<ref name="label"/>
</zeroOrMore>
<zeroOrMore>
<ref name="item"/>
</zeroOrMore>
<zeroOrMore>
<ref name="listitem"/>
</zeroOrMore>
<zeroOrMore>
<ref name="list"/>
</zeroOrMore>
<zeroOrMore>
<ref name="figure"/>
</zeroOrMore>
<optional>
<ref name="head"/>
</optional>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="cell"/>
</zeroOrMore>
<zeroOrMore>
<ref name="row"/>
</zeroOrMore>
<zeroOrMore>
<ref name="tablehead"/>
</zeroOrMore>
<zeroOrMore>
<ref name="table"/>
</zeroOrMore>
<zeroOrMore>
<ref name="div"/>
</zeroOrMore>
<zeroOrMore>
<ref name="speech"/>
</zeroOrMore>
<zeroOrMore>
<ref name="text"/>
</zeroOrMore>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="pos"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lemma"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lang"/>
</zeroOrMore>
<zeroOrMore>
<ref name="domain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sense"/>
</zeroOrMore>
<zeroOrMore>
<ref name="subjectivity"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ph"/>
</zeroOrMore>
<zeroOrMore>
<ref name="str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="current" ns="http://ilk.uvt.nl/folia">
<element name="current">
<a:documentation>Used in the context of :class:`Correction` to encapsulate the currently authoritative annotations.
Needed only when suggestions for correction are proposed (:class:`Suggestion`) for structural elements.
</a:documentation>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="su"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunk"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entity"/>
</zeroOrMore>
<optional>
<ref name="hd"/>
</optional>
<optional>
<ref name="dep"/>
</optional>
<optional>
<ref name="source"/>
</optional>
<optional>
<ref name="target"/>
</optional>
<optional>
<ref name="relation"/>
</optional>
<zeroOrMore>
<ref name="dependency"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferencelink"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferencechain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semrole"/>
</zeroOrMore>
<zeroOrMore>
<ref name="predicate"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statement"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observation"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timesegment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="part"/>
</zeroOrMore>
<zeroOrMore>
<ref name="br"/>
</zeroOrMore>
<zeroOrMore>
<ref name="whitespace"/>
</zeroOrMore>
<zeroOrMore>
<ref name="w"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morpheme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phoneme"/>
</zeroOrMore>
<zeroOrMore>
<ref name="note"/>
</zeroOrMore>
<zeroOrMore>
<ref name="def"/>
</zeroOrMore>
<zeroOrMore>
<ref name="term"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ex"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entry"/>
</zeroOrMore>
<zeroOrMore>
<ref name="quote"/>
</zeroOrMore>
<zeroOrMore>
<ref name="s"/>
</zeroOrMore>
<zeroOrMore>
<ref name="utt"/>
</zeroOrMore>
<zeroOrMore>
<ref name="event"/>
</zeroOrMore>
<optional>
<ref name="caption"/>
</optional>
<zeroOrMore>
<ref name="label"/>
</zeroOrMore>
<zeroOrMore>
<ref name="item"/>
</zeroOrMore>
<zeroOrMore>
<ref name="listitem"/>
</zeroOrMore>
<zeroOrMore>
<ref name="list"/>
</zeroOrMore>
<zeroOrMore>
<ref name="figure"/>
</zeroOrMore>
<optional>
<ref name="head"/>
</optional>
<zeroOrMore>
<ref name="p"/>
</zeroOrMore>
<zeroOrMore>
<ref name="cell"/>
</zeroOrMore>
<zeroOrMore>
<ref name="row"/>
</zeroOrMore>
<zeroOrMore>
<ref name="tablehead"/>
</zeroOrMore>
<zeroOrMore>
<ref name="table"/>
</zeroOrMore>
<zeroOrMore>
<ref name="div"/>
</zeroOrMore>
<zeroOrMore>
<ref name="speech"/>
</zeroOrMore>
<zeroOrMore>
<ref name="text"/>
</zeroOrMore>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="pos"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lemma"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lang"/>
</zeroOrMore>
<zeroOrMore>
<ref name="domain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sense"/>
</zeroOrMore>
<zeroOrMore>
<ref name="subjectivity"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="ph"/>
</zeroOrMore>
<zeroOrMore>
<ref name="str"/>
</zeroOrMore>
<zeroOrMore>
<ref name="t"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="correction" ns="http://ilk.uvt.nl/folia">
<element name="correction">
<a:documentation>
Corrections are one of the most complex annotation types in FoLiA. Corrections
can be applied not just over text, but over any type of structure annotation,
token annotation or span annotation. Corrections explicitly preserve the
original, and recursively so if corrections are done over other corrections.
Despite their complexity, the library treats correction transparently. Whenever
you query for a particular element, and it is part of a correction, you get the
corrected version rather than the original. The original is always *non-authoritative*
and normal selection methods will ignore it.
This class takes four classes as children, that in turn encapsulate the actual annotations:
* :class:`New` - Encapsulates the newly corrected annotation(s)
* :class:`Original` - Encapsulated the old original annotation(s)
* :class:`Current` - Encapsulates the current authoritative annotation(s)
* :class:`Suggestions` - Encapsulates the annotation(s) that are a non-authoritative suggestion for correction
</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="current"/>
</optional>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<optional>
<ref name="new"/>
</optional>
<optional>
<ref name="original"/>
</optional>
<zeroOrMore>
<ref name="suggestion"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="alt" ns="http://ilk.uvt.nl/folia">
<element name="alt">
<a:documentation>Element grouping alternative token annotation(s).
Multiple alternative elements may occur, each denoting a different alternative. Elements grouped inside an alternative block are considered dependent.
A key feature of FoLiA is its ability to make explicit alternative
annotations, for token annotations, this class is used to this end.
Alternative annotations are embedded in this structure. This implies the
annotation is *not authoritative*, but is merely an alternative to the
actual annotation (if any). Alternatives may typically occur in larger
numbers, representing a distribution each with a confidence value (not
mandatory). Each alternative is wrapped in its an instance of this class,
as multiple elements inside a single alternative are considered dependent
and part of the same alternative. Combining multiple annotation in one
alternative makes sense for mixed annotation types, where for instance a
pos tag alternative is tied to a particular lemma.
</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="errordetection"/>
</zeroOrMore>
<zeroOrMore>
<ref name="pos"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lemma"/>
</zeroOrMore>
<zeroOrMore>
<ref name="lang"/>
</zeroOrMore>
<zeroOrMore>
<ref name="domain"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sense"/>
</zeroOrMore>
<zeroOrMore>
<ref name="subjectivity"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="correction"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morphology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phonology"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="altlayers" ns="http://ilk.uvt.nl/folia">
<element name="altlayers">
<a:documentation>Element grouping alternative subtoken annotation(s). Multiple altlayers elements may occur, each denoting a different alternative. Elements grouped inside an alternative block are considered dependent.</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="syntax"/>
</zeroOrMore>
<zeroOrMore>
<ref name="chunking"/>
</zeroOrMore>
<zeroOrMore>
<ref name="entities"/>
</zeroOrMore>
<zeroOrMore>
<ref name="dependencies"/>
</zeroOrMore>
<zeroOrMore>
<ref name="morphology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="phonology"/>
</zeroOrMore>
<zeroOrMore>
<ref name="coreferences"/>
</zeroOrMore>
<zeroOrMore>
<ref name="semroles"/>
</zeroOrMore>
<zeroOrMore>
<ref name="statements"/>
</zeroOrMore>
<zeroOrMore>
<ref name="sentiments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="observations"/>
</zeroOrMore>
<zeroOrMore>
<ref name="complexalignments"/>
</zeroOrMore>
<zeroOrMore>
<ref name="timing"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define name="external" ns="http://ilk.uvt.nl/folia">
<element name="external">
<attribute name="src">
<text/>
</attribute>
<optional>
<attribute name="include">
<text/>
</attribute>
</optional>
</element>
</define>
<define name="wref" ns="http://ilk.uvt.nl/folia">
<element name="wref">
<attribute name="id">
<text/>
</attribute>
<optional>
<attribute name="t">
<text/>
</attribute>
</optional>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="su" ns="http://ilk.uvt.nl/folia">
<element name="su">
<a:documentation>Syntactic Unit, span annotation element to be used in :class:`SyntaxLayer`</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="textclass"/>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="aref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alignment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>
<zeroOrMore>
<ref name="feat"/>
</zeroOrMore>
<zeroOrMore>
<ref name="foreign-data"/>
</zeroOrMore>
<zeroOrMore>
<ref name="metric"/>
</zeroOrMore>
<zeroOrMore>
<ref name="su"/>
</zeroOrMore>
<zeroOrMore>
<ref name="wref"/>
</zeroOrMore>
</interleave>
</element>
</define>
<define xmlns:a="http://relaxng.org/ns/annotation/0.9" name="chunk" ns="http://ilk.uvt.nl/folia">
<element name="chunk">
<a:documentation>Chunk element, span annotation element to be used in :class:`ChunkingLayer`</a:documentation>
<optional>
<attribute name="id" ns="http://www.w3.org/XML/1998/namespace">
<data type="ID" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="class">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="set">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotator">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="annotatortype"/>
</optional>
<optional>
<attribute name="confidence">
<data type="double" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="n">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="datetime">
<data type="dateTime" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="begintime"/>
</optional>
<optional>
<attribute name="endtime"/>
</optional>
<optional>
<attribute name="src">
<data type="anyURI" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="speaker">
<data type="string" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"/>
</attribute>
</optional>
<optional>
<attribute name="textclass"/>
</optional>
<optional>
<attribute name="metadata"/>
</optional>
<optional>
<attribute name="auth"/>
</optional>
<ref name="allow_foreign_attributes"/>
<interleave>
<zeroOrMore>
<ref name="aref"/>
</zeroOrMore>
<zeroOrMore>
<ref name="alignment"/>
</zeroOrMore>
<zeroOrMore>
<ref name="comment"/>
</zeroOrMore>
<optional>
<ref name="desc"/>
</optional>