<!--
  This file is part of centurio.work/wiz.

  centurio.work/wiz is free software: you can redistribute it and/or modify it
  under the terms of the GNU General Public License as published by the Free
  Software Foundation, either version 3 of the License, or (at your option) any
  later version.

  centurio.work/wiz is distributed in the hope that it will be useful, but
  WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  more details.

  You should have received a copy of the GNU General Public License along with
  centurio.work/wiz (file LICENSE in the main directory). If not, see
  <http://www.gnu.org/licenses/>.
-->

<description xmlns="http://riddl.org/ns/description/1.0" xmlns:ann="http://riddl.org/ns/annotation/1.0" xmlns:xi="http://www.w3.org/2001/XInclude" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
  <message name="input">
    <parameter name="style_url" type="string"/>
    <parameter name="document_url" type="string"/>
    <parameter name="x_amount" type="string"/>
    <parameter name="y_amount" type="string"/>
    <parameter name="lang" type="string"/>
  </message>
  <message name="frame">
    <parameter name="lx" type="string"/>
    <parameter name="ly" type="string"/>
    <parameter name="rx" type="string"/>
    <parameter name="ry" type="string"/>
    <parameter name="url" type="string"/>
  </message>
  <message name="ui">
    <parameter name="ui" mimetype="text/html"/>
  </message>
  <message name="url">
    <parameter name="url" mimetype="text/html"/>
  </message>
  <message name="htmlform">
    <parameter name="htmlform" mimetype="text/plain"/>
  </message>
  <message name="callback">
    <header name="CPEE-CALLBACK" type="boolean"/>
  </message>
  <message name="text">
    <parameter name="text" mimetype="text/plain"/>
  </message>
  <message name="langs">
    <parameter name="langs" mimetype="*/xml">
      <xi:include href="rngs/langs.rng"/>
    </parameter>
  </message>
  <message name="lang">
    <parameter name="lang" type="string"/>
  </message>
  <message name="opa">
    <parameter name="op" fixed="error"/>
    <parameter name="reason" type="string"/>
  </message>
  <message name="opb">
    <parameter name="op" fixed="result"/>
    <parameter name="value" mimetype="application/json"/>
  </message>
  <message name="json">
    <parameter name="value" mimetype="application/json"/>
  </message>
  <message name="form">
    <parameter name="form" mimetype="application/json"/>
  </message>

  <resource>
    <get out="url"/>
    <post out="text"/>
    <resource>
      <get out="url"/>
      <resource relative="builder">
        <get out='url'/>
        <post in="form" />
        <post in="htmlform" />
      </resource>
      <resource relative="json">
        <get out='json'/>
      </resource>
    </resource>
  </resource>
</description>
