Re: [RT] Cocoon Input Model

2004-03-05 Thread Daniel Fagerstrom
Sorry for dissapearing after having started this discussion. Guido Casper wrote: Daniel Fagerstrom wrote: So a pipeline for input handling could look like: g - t* - store - act - [select] - g - t* - s. I'm still not convinced by this symmetry thing :-) The requirements for inbound data flow

Re: [RT] Cocoon Input Model

2004-03-05 Thread Daniel Fagerstrom
Alan wrote: * Daniel Fagerstrom [EMAIL PROTECTED] [2004-02-25 15:49]: Why Cocoon rocks for publishing --- Cocoon is based on three great ideas: XML-adaptors, XML-pipelines and the sitemap. Here we will discuss the first two. If you have N different input formats

Re: [RT] Cocoon Input Model

2004-03-05 Thread Daniel Fagerstrom
Alan wrote: * Daniel Fagerstrom [EMAIL PROTECTED] [2004-02-25 21:53]: snip/ XML centric view on input - The most important part is not a code change but rather a design principle: Input handling is controlled from flowscripts, the flowscript typically adapt various input

Re: [RT] Cocoon Input Model

2004-03-02 Thread Alan
* Hunsberger, Peter [EMAIL PROTECTED] [2004-03-01 22:06]: Alan [EMAIL PROTECTED] writes: snip/ There is already flow logic in the site map. The pipeline is a select statement. It is a clear expression of the pipelines intent. Ok, that's where we differ. Our

RE: [RT] Cocoon Input Model

2004-03-02 Thread Hunsberger, Peter
Alan [EMAIL PROTECTED] writes: snip/ I am using the matching facilities agressively. It is how I see a web application. A GET are function calls, the URI's are the function signatures, the pipelines are the function bodies. Its stateless functional programming to me.

Re: [RT] Cocoon Input Model

2004-03-01 Thread Daniel Fagerstrom
Bertrand Delacretaz wrote: Le Mercredi, 25 fév 2004, à 16:49 Europe/Zurich, Daniel Fagerstrom a écrit : snip-plenty-of-good-stuff/ ...But in many cases using SAX based XML as in pipelines is not enough we need a data structure i.e. DOM. This leads to flowscript components that reads some

Re: [RT] Cocoon Input Model

2004-03-01 Thread Daniel Fagerstrom
remove the map:call, or maybe use a select between the input and the output part of the pipeline. /Daniel -Original Message- From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 8:46 AM To: [EMAIL PROTECTED] Subject: Re: [RT] Cocoon Input Model Le

Re: [RT] Cocoon Input Model

2004-03-01 Thread Bertrand Delacretaz
Le Lundi, 1 mars 2004, à 15:48 Europe/Zurich, Daniel Fagerstrom a écrit : ...I meant something a little bit more explicit: map:generate type=request/ map:transform src=prepare-query-for-user-preferences/ map:transform type=sql/ map:store type=xml dest=xmodule:request-attr:foo/ map:call

Re: [RT] Cocoon Input Model

2004-03-01 Thread Daniel Fagerstrom
Steven Noels wrote: On 25 Feb 2004, at 22:53, Daniel Fagerstrom wrote: CForms should use typed DOM as form model --- I also believe that making CForms use typed XML as data storage is important. This obviously require some changes, among other things the

Re: [RT] Cocoon Input Model

2004-03-01 Thread Alan
* Daniel Fagerstrom [EMAIL PROTECTED] [2004-03-01 14:54]: Bertrand Delacretaz wrote: Le Mercredi, 25 f?v 2004, ? 16:49 Europe/Zurich, Daniel Fagerstrom a ?crit : snip-plenty-of-good-stuff/ ...But in many cases using SAX based XML as in pipelines is not enough we need a data structure

Re: [RT] Cocoon Input Model

2004-03-01 Thread Alan
* Ralph Goers [EMAIL PROTECTED] [2004-02-25 18:18]: Just trying to understand from a practical point of view, does this mean something like map:generate type=request/ map:transform src=prepare-query-for-user-preferences/ map:transform type=sql/ map:call function=myFlow() dom-input=domIn/

RE: [RT] Cocoon Input Model

2004-03-01 Thread Hunsberger, Peter
Steve Krulewitz [EMAIL PROTECTED] writes: I agree that more sophisticated input handing would make general web applications much easier to write in Cocoon... here are some more random thoughts on the subject: Input can come from many sources: - http query string - http post stream

RE: [RT] Cocoon Input Model

2004-03-01 Thread Ralph Goers
as long as the proper XML document is returned to the action at the end of the pipeline. Ralph -Original Message- From: Hunsberger, Peter [mailto:[EMAIL PROTECTED] Sent: Monday, March 01, 2004 8:17 AM To: [EMAIL PROTECTED] Subject:RE: [RT] Cocoon Input Model So, bottom

Re: [RT] Cocoon Input Model

2004-03-01 Thread Alan
* Hunsberger, Peter [EMAIL PROTECTED] [2004-03-01 16:17]: Steve Krulewitz [EMAIL PROTECTED] writes: 1) in the flowscript the varible output has the complete contents of this pipeline in it, it can be folded back into any handling you want via flowscript variable passing (eg, as an XSLT

Re: [RT] Cocoon Input Model

2004-03-01 Thread Stefano Mazzocchi
Hunsberger, Peter wrote: So, bottom line, I don't think Cocoon needs any new sitemap constructs to do what is being discussed, unless what is needed is a way to do this without flow? However, trying to do this without flow seems to me to mean going back to regular actions, so I can't see any

Re: [RT] Cocoon Input Model

2004-03-01 Thread Stefano Mazzocchi
Alan wrote: * Hunsberger, Peter [EMAIL PROTECTED] [2004-03-01 16:17]: Steve Krulewitz [EMAIL PROTECTED] writes: 1) in the flowscript the varible output has the complete contents of this pipeline in it, it can be folded back into any handling you want via flowscript variable passing (eg, as an

Re: [RT] Cocoon Input Model

2004-03-01 Thread Bruno Dumon
On Mon, 2004-03-01 at 16:09, Daniel Fagerstrom wrote: Steven Noels wrote: On 25 Feb 2004, at 22:53, Daniel Fagerstrom wrote: CForms should use typed DOM as form model --- I also believe that making CForms use typed XML as data storage is

Re: [RT] Cocoon Input Model

2004-03-01 Thread Alan
* Stefano Mazzocchi [EMAIL PROTECTED] [2004-03-01 18:32]: Alan wrote: * Hunsberger, Peter [EMAIL PROTECTED] [2004-03-01 16:17]: So, bottom line, I don't think Cocoon needs any new sitemap constructs to do what is being discussed, unless what is needed is a way to do this without flow?

RE: [RT] Cocoon Input Model

2004-03-01 Thread Hunsberger, Peter
Alan [EMAIL PROTECTED] writes: snip/ Look, nobody prevents you from doing this already today: StreamGenerator - ValidateTransformer - StoreTransformer - but then what happens if the validation is not complete? how to you manage that? what is the logic? As I said, the logic of a

Re: [RT] Cocoon Input Model

2004-02-29 Thread Guido Casper
Steve Krulewitz wrote: I agree that more sophisticated input handing would make general web applications much easier to write in Cocoon... here are some more random thoughts on the subject: Input can come from many sources: - http query string - http post stream - http cookie - user session

Re: [RT] Cocoon Input Model

2004-02-28 Thread Steve Krulewitz
I agree that more sophisticated input handing would make general web applications much easier to write in Cocoon... here are some more random thoughts on the subject: Input can come from many sources: - http query string - http post stream - http cookie - user session object (from disk?

Re: [RT] Cocoon Input Model

2004-02-27 Thread Guido Casper
Alan wrote: * Guido Casper [EMAIL PROTECTED] [2004-02-26 20:41]: Daniel Fagerstrom wrote: So a pipeline for input handling could look like: g - t* - store - act - [select] - g - t* - s. I'm still not convinced by this symmetry thing :-) The requirements for inbound data flow seems to be too

Re: [RT] Cocoon Input Model

2004-02-27 Thread Alan
* Guido Casper [EMAIL PROTECTED] [2004-02-27 08:02]: Alan wrote: * Guido Casper [EMAIL PROTECTED] [2004-02-26 20:41]: Daniel Fagerstrom wrote: So a pipeline for input handling could look like: g - t* - store - act - [select] - g - t* - s. I'm still not convinced by this symmetry

Re: [RT] Cocoon Input Model

2004-02-27 Thread Guido Casper
Alan wrote: What do you mean by strongly typed? Are we discussiong form posts here? Yes, form posts being the use case at hand, but there are other ways input may be provided. Quoting Daniel: Besides using request parameters and structured request parameters as user input. XML is used for

Re: [RT] Cocoon Input Model

2004-02-27 Thread Alan
* Daniel Fagerstrom [EMAIL PROTECTED] [2004-02-25 15:49]: Why Cocoon rocks for publishing --- Cocoon is based on three great ideas: XML-adaptors, XML-pipelines and the sitemap. Here we will discuss the first two. If you have N different input formats and M

Re: [RT] Cocoon Input Model

2004-02-27 Thread Alan
* Daniel Fagerstrom [EMAIL PROTECTED] [2004-02-25 21:53]: Stefano Mazzocchi wrote: After a long silence, Daniel fights back :-) :) On Feb 25, 2004, at 10:49, Daniel Fagerstrom wrote: [snip very good summary] To sumarize: I think that we could make Cocoon considerably easier to

Re: [RT] Cocoon Input Model

2004-02-27 Thread Alan
* Bertrand Delacretaz [EMAIL PROTECTED] [2004-02-25 16:46]: Le Mercredi, 25 f?v 2004, ? 16:49 Europe/Zurich, Daniel Fagerstrom a ?crit : snip-plenty-of-good-stuff/ ...But in many cases using SAX based XML as in pipelines is not enough we need a data structure i.e. DOM. This leads to

Re: [RT] Cocoon Input Model

2004-02-26 Thread Guido Casper
Daniel Fagerstrom wrote: So a pipeline for input handling could look like: g - t* - store - act - [select] - g - t* - s. I'm still not convinced by this symmetry thing :-) The requirements for inbound data flow seems to be too different from those of outbound data flow. For outbound data flow

Re: [RT] Cocoon Input Model

2004-02-26 Thread Alan
* Guido Casper [EMAIL PROTECTED] [2004-02-26 20:41]: Daniel Fagerstrom wrote: So a pipeline for input handling could look like: g - t* - store - act - [select] - g - t* - s. I'm still not convinced by this symmetry thing :-) The requirements for inbound data flow seems to be too

Re: [RT] Cocoon Input Model

2004-02-26 Thread Geoff Howard
Alan wrote: * Guido Casper [EMAIL PROTECTED] [2004-02-26 20:41]: Daniel Fagerstrom wrote: So a pipeline for input handling could look like: g - t* - store - act - [select] - g - t* - s. I'm still not convinced by this symmetry thing :-) The requirements for inbound data flow

RE: [RT] Cocoon Input Model

2004-02-26 Thread Ralph Goers
could then be used to populate a Java object or just be passed on to other actions, etc. Ralph -Original Message- From: Guido Casper [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 12:47 PM To: [EMAIL PROTECTED] Subject:Re: [RT] Cocoon Input Model Daniel

Re: [RT] Cocoon Input Model

2004-02-25 Thread Stefano Mazzocchi
After a long silence, Daniel fights back :-) On Feb 25, 2004, at 10:49, Daniel Fagerstrom wrote: [snip very good summary] To sumarize: I think that we could make Cocoon considerably easier to use for (web)apps and increase reuse of components by using the XML-adaptor and pipes and filter

RE: [RT] Cocoon Input Model

2004-02-25 Thread Ralph Goers
Daniel, I have to say your post was well written and well thought out. I hadn't considered the idea of using XML on the input side but it does have certain advantages. For one, I could define an XML schema to do some, or all, of the input validation. In our application we take the input,

Re: [RT] Cocoon Input Model

2004-02-25 Thread Bertrand Delacretaz
Le Mercredi, 25 fév 2004, à 16:49 Europe/Zurich, Daniel Fagerstrom a écrit : snip-plenty-of-good-stuff/ ...But in many cases using SAX based XML as in pipelines is not enough we need a data structure i.e. DOM. This leads to flowscript components that reads some input format to DOM and from

RE: [RT] Cocoon Input Model

2004-02-25 Thread Ralph Goers
: Wednesday, February 25, 2004 8:46 AM To: [EMAIL PROTECTED] Subject:Re: [RT] Cocoon Input Model Le Mercredi, 25 fév 2004, à 16:49 Europe/Zurich, Daniel Fagerstrom a écrit : snip-plenty-of-good-stuff/ ...But in many cases using SAX based XML as in pipelines is not enough we need

Re: [RT] Cocoon Input Model

2004-02-25 Thread Daniel Fagerstrom
Stefano Mazzocchi wrote: After a long silence, Daniel fights back :-) :) On Feb 25, 2004, at 10:49, Daniel Fagerstrom wrote: [snip very good summary] To sumarize: I think that we could make Cocoon considerably easier to use for (web)apps and increase reuse of components by using the

Re: [RT] Cocoon Input Model

2004-02-25 Thread Steven Noels
On 25 Feb 2004, at 22:53, Daniel Fagerstrom wrote: CForms should use typed DOM as form model --- I also believe that making CForms use typed XML as data storage is important. This obviously require some changes, among other things the widget objects need