<?xml version="1.0" encoding="ISO-8859-1"?>

<?cocoon-process type="xsp"?>

<?cocoon-process type="xslt"?>
<?xml-stylesheet href="translator.xsl" type="text/xsl"?>

<xsp:page
  language="java"
  xmlns:xsp="http://www.apache.org/1999/XSP/Core"
>

  <xsp:structure>
    <xsp:include>org.plenix.translator.*</xsp:include>
    <xsp:include>org.plenix.translator.sql.*</xsp:include>
  </xsp:structure>

  <html>
  <head>
    <xsp:logic>
      Translator translator =
        (Translator) global.getAttribute("translator.translator");
      
      if (translator == null) {
        SQLTranslator t = new SQLTranslator();
        t.setConnectionName("dictionary");
        global.setAttribute("translator.translator", t);
      }
    </xsp:logic>
    <title>Cocoon Multilingual Dictionary</title>
    <frameset rows="80,*,35">
      <frame
        name="query"
        scrolling="no"
        frameborder="0"
        marginwidth="0"
        marginheight="0"
        src="query.xml"
      />
      <frame
        name="results"
        frameborder="1"
        marginwidth="0"
        marginheight="0"
        src="help.xml"
      />
      <frame
        name="source"
        scrolling="no"
        frameborder="1"
        marginwidth="0"
        marginheight="0"
        src="source.html"
      />
    </frameset>
  </head>
  </html>

</xsp:page>
