<?xml version="1.0" encoding="utf-8"?>
<pml_schema 
    xmlns="http://ufal.mff.cuni.cz/pdt/pml/schema/"
    version="1.1">
  <description>PML Schema for TrEd Extension Package Descriptions</description>
  <root name="tred_extension" type="te-extension.type"/>
  <type name="te-extension.type">
    <structure>
      <member name="pkgname" required="1"><cdata format="NMTOKEN"/></member>
      <member name="repository">
	<structure>
	  <member as_attribute="1" required="1" name="href">
	    <cdata format="anyURI"/>
	  </member>
	</structure>
      </member>
      <member name="title"><cdata format="any"/></member>
      <member name="icon"><cdata format="anyURI"/></member>
      <member name="version" type="te-version.type"/>
      <member name="size" type="te-size.type"/>
      <member name="copyright">
	<container>
	  <attribute name="year"><cdata format="any"/></attribute>
	  <cdata format="any"/>
	</container>
      </member>
      <member name="require" type="te-require.type"/>
      <member name="description"><cdata format="any"/></member>
      <member name="otherinfo">
	<list>
	  <container>
	    <attribute name="name"><cdata format="any"/></attribute>
	    <cdata format="any"/>
	  </container>
	</list>
      </member>
    </structure>
  </type>
  <type name="te-require.type">
    <container>
      <attribute name="install_size"><cdata format="nonNegativeInteger"/></attribute>
      <attribute name="package_size"><cdata format="nonNegativeInteger"/></attribute>
    <sequence>
      <element name="tred">
	<container>
	  <attribute name="min_version" type="te-version.type"/>
	  <attribute name="max_version" type="te-version.type"/>
	</container>
      </element>
      <element name="extension">
	<container>
	  <attribute name="name" required="1"><cdata format="NMTOKEN"/></attribute>
	  <attribute name="href"><cdata format="anyURI"/></attribute>
	  <attribute name="min_version" type="te-version.type"/>
	  <attribute name="max_version" type="te-version.type"/>
	</container>
      </element>
      <element name="perl_module">
	<container type="te-perl_module.type">
	  <attribute name="name" required="1"><cdata format="any"/></attribute>
	  <attribute name="min_version" type="te-version.type"/>
	  <attribute name="max_version" type="te-version.type"/>
	</container>
      </element>
    </sequence>
    </container>
  </type>
  <type name="te-version.type">
    <cdata format="any"/>
  </type>
  <type name="te-perl_module.type">
    <sequence>
      <element name="ppm">
	<container>
	  <attribute name="name" required="1"><cdata format="any"/></attribute>
	  <attribute name="href"><cdata format="anyURI"/></attribute>
	  <attribute name="perl_version" type="te-version.type"/>
	  <attribute name="platform"><cdata format="any"/></attribute>
	</container>
      </element>
      <element name="other">
	<container>
	  <attribute name="href"><cdata format="anyURI"/></attribute>
	</container>
      </element>
    </sequence>
  </type>
</pml_schema>
