Thanks to Luis Gois for correcting the first part.
it now says:
"No method matching main() found in inner class
org.apache.cocoon.www.pages.make1_xsp. make_xsl."
(I really don't know why there is a space between make1_xsp. and  make_xsl.
Is it normal?)

*******
Here is my code for make1.xsp
*******
<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page
          language="java"
          xmlns:xsp="http://apache.org/xsp";
          xmlns:esql="http://apache.org/cocoon/SQL/v2";>

<xsp:structure>
  <xsp:include>java.io.*</xsp:include>
</xsp:structure>

<xsp:logic>
class make_xsl {
  public void main(String[] args) throws IOException {
 FileReader entree = new
FileReader(("http//:localhost/cocoon/test/make_xsl.xsp"));
  FileWriter sortie = new FileWriter("output.xsl");
 int c;
 while ( (c = entree.read()) != -1 )
sortie.write(c);
sortie.close();
entree.close();
     }
}
</xsp:logic>

  <page>

<xsp:logic>
    make_xsl anObject = new make_xsl();
    anObject.main();
</xsp:logic>

If you see this, it works.
  </page>
</xsp:page>


Surely I didn't put the anObject call at the right place. My java is rather
experimental.
Thanks for correcting me.

Cib

France, Bordeaux,xml and gay pride.


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to