<?xml version="1.0" encoding="utf-8"?>
<pml_schema xmlns="http://ufal.mff.cuni.cz/pdt/pml/schema/" version="1.1">
  <revision>0.1.3</revision>
  <description>Alpino DS 1.3</description>

  <root name="alpino_ds_pml" type="alpino_ds.type"/>

  <type name="alpino_ds.type">
    <structure>
      <member name="version"><cdata format="any"/></member>
      <member name="sentence"  type="sentence.type"/>
      <member name="comments">
        <sequence content_pattern="comment*">
          <element name="comment" type="comment.type"/>
        </sequence>
      </member>
      <member name="trees" role="#TREES">
	<list type="node.type" ordered="1"/>
      </member>
    </structure>
  </type>


  <type name="node.type">
    <structure role="#NODE">
      <member as_attribute="1" name="begin" type="index.type" required="1"/>
      <member as_attribute="1" name="cat" type="cat.type" required="0"/>
      <member as_attribute="1" name="end" type="index.type" required="1"/>
      <member as_attribute="1" name="id" type="index.type" required="1"/>
      <member as_attribute="1" name="index" type="index.type" required="0"/>
      <member as_attribute="1" name="pos" type="pos.type" required="0"/>
      <member as_attribute="1" name="rel" type="rel.type" required="1"/>
      <member as_attribute="1" name="root"><cdata format="normalizedString"/></member>
      <member as_attribute="1" name="word"><cdata format="normalizedString"/></member>
      <member name="children" role="#CHILDNODES">
	<list type="node.type" ordered="1"/>
      </member>
    </structure>
  </type>

  <type name="index.type">
    <cdata format="nonNegativeInteger"/>
  </type>

  <type name="sentence.type">
    <cdata format="any"/>
  </type>

  <type name="comment.type">
    <cdata format="any"/>
  </type>


  <type name="rel.type">
    <choice>
      <value>--</value>
      <value>app</value>
      <value>body</value>
      <value>cmp</value>
      <value>cnj</value>
      <value>crd</value>
      <value>det</value>
      <value>dlink</value>
      <value>dp</value>
      <value>hd</value>
      <value>hdf</value>
      <value>ld</value>
      <value>me</value>
      <value>mod</value>
      <value>mwp</value>
      <value>nucl</value>
      <value>obcomp</value>
      <value>obj1</value>
      <value>obj2</value>
      <value>part</value>
      <value>pc</value>
      <value>pobj1</value>
      <value>predc</value>
      <value>predm</value>
      <value>rhd</value>
      <value>sat</value>
      <value>se</value>
      <value>spec</value>
      <value>su</value>
      <value>sup</value>
      <value>svp</value>
      <value>tag</value>
      <value>top</value>
      <value>vc</value>
      <value>whd</value>
    </choice>
  </type>

  <type name="cat.type">
    <choice>
      <value>advp</value>
      <value>ahi</value>
      <value>ap</value>
      <value>conj</value>
      <value>cp</value>
      <value>detp</value>
      <value>du</value>
      <value>inf</value>
      <value>mwu</value>
      <value>np</value>
      <value>oti</value>
      <value>pp</value>
      <value>ppart</value>
      <value>rel</value>
      <value>smain</value>
      <value>ssub</value>
      <value>sv1</value>
      <value>svan</value>
      <value>ti</value>
      <value>whq</value>
      <value>whrel</value>
      <value>whsub</value>
      <value>top</value>
    </choice>
  </type>

  <type name="pos.type">
    <choice>
      <value>adj</value>
      <value>adv</value>
      <value>ahi</value>
      <value>comp</value>
      <value>comparative</value>
      <value>det</value>
      <value>fixed</value>
      <value>name</value>
      <value>noun</value>
      <value>num</value>
      <value>part</value>
      <value>pp</value>
      <value>prefix</value>
      <value>prep</value>
      <value>pron</value>
      <value>punct</value>
      <value>tag</value>
      <value>te</value>
      <value>verb</value>
      <value>vg</value>
    </choice>
  </type>



</pml_schema>
