I think I may be doing something similar to what you want to do. I am calling cocoon from an axis provider, and also directly from within an ejb. There are several things you need to do to accomplish this: The first thing you should look at is the commandline context under org.apache.cocoon.environment. That will give you some clues on where to start with creating a non-servlet based cocoon application. I am also using cocoon from within a servlet context, so I took the easy way out and created a remote wrapper for cocoon to place in the JNDI naming context, but it still required me to write a custom Environment, Request, Response, etc... for my application context. You should be able to use the standard serializers and generators from cocoon. The output from cocoon will be captured in the output stream in your Environment class. The other option you have is to use the pipeline classes directly, but then you lose the ability to configure the pipeline using the cocoon/avalon framework. Hope that helps.
Mauro Daniel Ardolino <[EMAIL PROTECTED]> wrote: >Hello! >I need to know if cocoon can be used to apply transformations to >xml files that comes from a socket or from a soap communication. >Also I need to know if I can serialize the results to a java class >to parse them for example with sax. > >So what I mean is that I want to use cocoon to make only the >transformations. I need to make transformations (using xpath) >and I think that cocoon (and XSL) can help me, but the results will >not go to a web-browser. They have to go to a class. > >My program can be a stand alone program with Swing or SWT gui interface, >or can be a batch program. > >Am I clear? If not, please let me know. > >Thanks in advance, reggards, > >-- Mauro > > >--------------------------------------------------------------------- >Please check that your question has not already been answered in the >FAQ before posting. <http://xml.apache.org/cocoon/faq/index.html> > >To unsubscribe, e-mail: <[EMAIL PROTECTED]> >For additional commands, e-mail: <[EMAIL PROTECTED]> > > __________________________________________________________________ The NEW Netscape 7.0 browser is now available. Upgrade now! http://channels.netscape.com/ns/browsers/download.jsp Get your own FREE, personal Netscape Mail account today at http://webmail.netscape.com/