Re: Cocoon, sockets and not a web browser.

2002-10-15 Thread Mauro Daniel Ardolino

Hi! I've red all the information and mails.  Thanks a lot.
I think TRaX will be the best solution.  I'm not sure if I am missing
something (e.g. i18n), but for the moment it's my choice.

Now I think I will not use XSP logic because it can be solved with Java.
My applications will be using the same logic and transformations within
servlets and other java objects.  So...I do not have to use cocoon (as
Jacob said before).

Am I missing something?

Thanks,

Mauro


On Wed, 9 Oct 2002, Mauro Daniel Ardolino wrote:

> Hi again! I've been out for a couple of hours...
> > 
> > So then why are you considering Cocoon?
> Well, because may be a crosspoint between my standalone application/s
> and some others web applications I have to do.  And of course I do 
> not want to make the transformations programming java classes 
> (using parsers like Xerces and Xalan) by myself, if there's 
> something done in this way.
> 
> I haven't seen the links of your posts yet.  May be the answer is there.
> 
> Also I want to use some XSP logic.
> 
> I'm starting and I want to know if all the transformation classes used
> by cocoon can be used by programs in the same way as cocoon does.
> I mean: pipelines.
> 
> For example:
> 
> A gui program must create a screen dinamically with certain attributes
> of some entity.  So by a socket it communicates with a legacy program 
> requesting a XML definition file (the file contents the list of the
> attributes and some constraints).  After the java program  receives 
> this information, it has to apply a XSL sheet with some filters
> of non desired attributes.  The resulting XML file must be converted 
> to a screen or may be converted to an html to show on a browser.
> 
> May be not only a filter must be applied, may be some transformation
> must (e.g. i18n).
> 
> What do you think?  Must I try to use cocoon for this?
> 
> Thanks.
> 
> Mauro
> 
> 
> > 
> > --
> > Jacob L E Blain Christen
> > Entheal LLC
> > 
> > -
> > Please check that your question  has not already been answered in the
> > FAQ before posting. 
> > 
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> > 
> > 
> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar



-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




RE: Cocoon, sockets and not a web browser.

2002-10-09 Thread JohnsBrn

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. 
>
>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/



Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Mauro Daniel Ardolino

> PD: Lets join efforts in this try Mauro, we can then make public some
> examples of how to accomplish this.
All right! But I warn you I'm new with this.

> PD3: What I am looking for is to be able to do something like this: (is it
> your need too?)
> the examplelook down.
Yes.  I'm trying to do something like this.  Exactly!  Even more complicated,
but "thanking cocoon" for its services.  
May be some part of cocoon may be used without cocoon.  I mean that may
be we can "simply" use the transformation classes (generators,tranformers)
inside our java code, without needing a sitemap.  We can write the
pipelines like this:
  ...
  xmlFile= generatorX.generate("doc/anXmlFile.xml","file");
  xmlFile= transformerY.transform(xmlFile,"style/anXslStylesheet.xsl");
  xmlFile= transformerZ.transform(xmlFile,"style/otherXslStylesheet.xsl");
  ...   

-- Mauro


On Wed, 9 Oct 2002, Dario Liberman wrote:

> Hola Mauro,
> I am trying the same path for similar reasons.
> 
> I send attached a message interchange with Marcus (the Soap guru of Cocoon).
> 
> Sounds like it has to be with extending some part of the 'action' part
> See http://localhost:8080/cocoon/documents/developing/extending.html
> 
> Best Regards,
> Dario.
> 
> PD: Lets join efforts in this try Mauro, we can then make public some
> examples of how to accomplish this.
> 
> PD2: To all the others, please let us know if you have gone with a similar
> approach of having cocoon be an internal module for xml transformations
> pipeline, so that one may have the input source and the output target be
> both of them memory objects.
> 
> PD3: What I am looking for is to be able to do something like this: (is it
> your need too?)
> 
> /* Pseudocode here inside my servlet or whatever: */
> While ( manager.keepOnWorking()==true) {
> /* in this example I get an XML from a soap request
> but it may be any other source, Like a database XML. */
> SoapObj.SyncWaitMessage();
> myInputXmlDomRef = SoapObj.GetXMLRequest();
> 
> cocoonref = Cocoons.getCocoonInstance();
> 
> /* Here I add objects to a hash table So That an Xsp (or whatever) Can
> Call Me for logic questions, DB interaction, etc  */
> cocoonref.PutObject("mylogicClass", this);
> 
> 
> /* Here I call cocoon with the xml input (it may be even empty), and ask
> it to process the transformation pipeline (using cocoons cache and all its
> cool stuff). The entry 6 in the map in this case produces an XML, so I
> transform the Sax into Dom and put it in myOuputXML object. */
> cocoonref.ApplyPipeline("MapEntry6",myInputXmlDomRef, myOutputXML);
> /* Cocoon may call me back many times during the transformation process
> through "mylogicClass" entry or EJB lookup, etc */
> 
> Try {
> /* I am done! thank you cocoon! Lets send the reply:  */
> SoapObj.PutResponse(myOutputXML);
> SoapObj.SendXMLResponse();
> } catch(error e) {
> cocoonref.PutObject("error", e);
> cocoonref.ApplyPipeline("MapEntry99_errorlogguer",myOutputXML,
> myLogOutputStream);
> /* The output may also be a stream of bytes in case of an image,
> etc. For example here it is a simple text log file */
> }
> 
> cocoonref.free();
> }
> 
> 
> I hope this is not too crazy an example, and that I managed to explain the
> idea.
> Thanks to everyone having got to here in the message, stay in contact.
> Bye.
> 
> 
> - Original Message -
> From: "Mauro Daniel Ardolino" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, October 09, 2002 09:47
> Subject: Cocoon, sockets and not a web browser.
> 
> 
> > 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. 
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


--

Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Mauro Daniel Ardolino

Hi again! I've been out for a couple of hours...
> 
> So then why are you considering Cocoon?
Well, because may be a crosspoint between my standalone application/s
and some others web applications I have to do.  And of course I do 
not want to make the transformations programming java classes 
(using parsers like Xerces and Xalan) by myself, if there's 
something done in this way.

I haven't seen the links of your posts yet.  May be the answer is there.

Also I want to use some XSP logic.

I'm starting and I want to know if all the transformation classes used
by cocoon can be used by programs in the same way as cocoon does.
I mean: pipelines.

For example:

A gui program must create a screen dinamically with certain attributes
of some entity.  So by a socket it communicates with a legacy program 
requesting a XML definition file (the file contents the list of the
attributes and some constraints).  After the java program  receives 
this information, it has to apply a XSL sheet with some filters
of non desired attributes.  The resulting XML file must be converted 
to a screen or may be converted to an html to show on a browser.

May be not only a filter must be applied, may be some transformation
must (e.g. i18n).

What do you think?  Must I try to use cocoon for this?

Thanks.

Mauro


> 
> --
> Jacob L E Blain Christen
> Entheal LLC
> 
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
> 
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>
> 
> 

-- 
Ing.Mauro Daniel Ardolino
Departamento de Desarrollo y Servicios
Altersoft
Billinghurst 1599 - Piso 9
C1425DTE - Capital Federal
Tel/Fax: 4821-3376 / 4822-8759
mailto: [EMAIL PROTECTED]
website: http://www.altersoft.com.ar


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Ola Berg


> > So then why are you considering Cocoon?

Cocoon has actions, aggregations, pseudo-protocols and other declarative goodies.

/O


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Emmanuil Batsis (Manos)

Jacob L E Blain Christen wrote:

>>Why not?
> 
> 
> Okay, so the apparent obvious answer to my question is only obvious to me.
> Look at Mauro's requirements:  standalone program, gui or batch processs,
> XLS and XPath.  Yes Cocoon does utilize XPath and XSL but these are easily
> utilized without Cocoon.  Given all of this, WHY would you want to go
> through
> the non-trivial task (if you think otherwise I suggest you go back and read
> the
> various installation problem posts) of setting up a servlet container with
> Cocoon?

Ok, in my case, where I already have my data(&sources) bundled under 
Cocoon, I just wouldn't want to duplicate them or the presentation logic.
I'd go for a fat client (the desktop app per the original poster) making 
requests to Cocoon.


> Cocoon is superfluous to Mauro's needs and can only get in the way.  Thus my
> somewhat rhetorical question--rhetorical because I thought the answer to be
> quite obvious.

If he doesn't have a remote fat client in mind but instead want to have 
local files, you are absolutely right. I guess it all comes down to an 
accurate use case.

Thanks for the reply,

Manos


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Jacob L E Blain Christen

> >>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.
> >
> >
> > So then why are you considering Cocoon?
>
> Why not?

Okay, so the apparent obvious answer to my question is only obvious to me.
Look at Mauro's requirements:  standalone program, gui or batch processs,
XLS and XPath.  Yes Cocoon does utilize XPath and XSL but these are easily
utilized without Cocoon.  Given all of this, WHY would you want to go
through
the non-trivial task (if you think otherwise I suggest you go back and read
the
various installation problem posts) of setting up a servlet container with
Cocoon?

Cocoon is superfluous to Mauro's needs and can only get in the way.  Thus my
somewhat rhetorical question--rhetorical because I thought the answer to be
quite obvious.

--
Jacob L E Blain Christen
Entheal LLC


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Emmanuil Batsis (Manos)

Jacob L E Blain Christen wrote:
>>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.
> 
> 
> So then why are you considering Cocoon?

Why not?

Manos


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Dario Liberman

Hola Mauro,
I am trying the same path for similar reasons.

I send attached a message interchange with Marcus (the Soap guru of Cocoon).

Sounds like it has to be with extending some part of the 'action' part
See http://localhost:8080/cocoon/documents/developing/extending.html

Best Regards,
Dario.

PD: Lets join efforts in this try Mauro, we can then make public some
examples of how to accomplish this.

PD2: To all the others, please let us know if you have gone with a similar
approach of having cocoon be an internal module for xml transformations
pipeline, so that one may have the input source and the output target be
both of them memory objects.

PD3: What I am looking for is to be able to do something like this: (is it
your need too?)

/* Pseudocode here inside my servlet or whatever: */
While ( manager.keepOnWorking()==true) {
/* in this example I get an XML from a soap request
but it may be any other source, Like a database XML. */
SoapObj.SyncWaitMessage();
myInputXmlDomRef = SoapObj.GetXMLRequest();

cocoonref = Cocoons.getCocoonInstance();

/* Here I add objects to a hash table So That an Xsp (or whatever) Can
Call Me for logic questions, DB interaction, etc  */
cocoonref.PutObject("mylogicClass", this);


/* Here I call cocoon with the xml input (it may be even empty), and ask
it to process the transformation pipeline (using cocoons cache and all its
cool stuff). The entry 6 in the map in this case produces an XML, so I
transform the Sax into Dom and put it in myOuputXML object. */
cocoonref.ApplyPipeline("MapEntry6",myInputXmlDomRef, myOutputXML);
/* Cocoon may call me back many times during the transformation process
through "mylogicClass" entry or EJB lookup, etc */

Try {
/* I am done! thank you cocoon! Lets send the reply:  */
SoapObj.PutResponse(myOutputXML);
SoapObj.SendXMLResponse();
} catch(error e) {
cocoonref.PutObject("error", e);
cocoonref.ApplyPipeline("MapEntry99_errorlogguer",myOutputXML,
myLogOutputStream);
/* The output may also be a stream of bytes in case of an image,
etc. For example here it is a simple text log file */
}

cocoonref.free();
}


I hope this is not too crazy an example, and that I managed to explain the
idea.
Thanks to everyone having got to here in the message, stay in contact.
Bye.


- Original Message -
From: "Mauro Daniel Ardolino" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 09, 2002 09:47
Subject: Cocoon, sockets and not a web browser.


> 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. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>

--- Begin Message ---

Hi Dario,

On Mon, Oct 07, 2002 at 03:19:50PM -0300, Dario Liberman wrote:
> Hi Marcus, thank you very much for your super-prompt response.
> 
> I attach the message I sent to the list, perhaps you can tell me what you
> think about it.

Ok, I've got come comments in your message below.

> I followed the tutorial for the jwsdp from sun, and they have a very nice
> framework for soap, it supports attachments (and even does an automatic
> webtier of SOAP-RPC for you if you provide an interface for your
> methods).Comparing it to apache soap, I dont care much about the automatic
> inteface since I can do it myself, but the attachments stuff is usefull and
> is working.

Ok. I haven't looked at jwsdp, perhaps its worth examining. The
SOAP support in Cocoon is based on Apache AXIS (not Apache SOAP
which is an older project), which has just been released as final 1.0.

Axis has passed all of the acceptance tests from Sun, so I presume
all of what is in jwsdp is in Axis somewhere.

> Getting to the point:
> 
> I have cocoon-2.0.3 and the directories you mention arent there, I guess I
> have to download something. Where should I download the lastest version of
> the cocoon-Soap implementation you made and where can I find a guide in
> order to make it work?

First thing, get Cocoon 2.1 from CVS. T

Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Steven Noels

Mauro Daniel Ardolino wrote:

> My program can be a stand alone program with Swing or SWT gui interface,
> or can be a batch program.

maybe it's better to simply use the TRAX API and do your own SAX 
pipelines, or have a look at 
http://www.apache.org/~andyc/neko/doc/style/index.html...?


-- 
Steven Noelshttp://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
Please check that your question  has not already been answered in the
FAQ before posting. 

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




Re: Cocoon, sockets and not a web browser.

2002-10-09 Thread Jacob L E Blain Christen

> 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.

So then why are you considering Cocoon?

--
Jacob L E Blain Christen
Entheal LLC

-
Please check that your question  has not already been answered in the
FAQ before posting. 

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