> -----Original Message----- > From: Alex McLintock [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 23, 2002 9:03 AM > To: [EMAIL PROTECTED] > Subject: RE: PHP status? > > > Thanks for spotting the important bits in the tutorial Geoff. Thank google! I knew it wasn't cocoon but was curious as to where it came from myself.
> > At 14:01 23/12/02, you wrote: > >I'm not a PHP user in cocoon, but I can provide some hints on the > >information > >you asked about. First, the biggest clues come from an odd location > >(http://xml.apache.org/cocoon/tutorial/tutorial-develop-webapp.html): > > > >---------------------- > >PhpGenerator > >This generator functions just like the JspGenerator, but with > PHP templates. > >The PHP must generate valid XML, and be a file in the context. > > This is a shame but I suppose only to be expected. What I was > really after > was some easy way of using exisitng PHP applications within a > larger Cocoon > framework. If the PHP has to generate valid XML then that limits things > quite a bit. I suppose I could persuade it to generate xHTML, but even > that will be a pain. How you want to use them makes all the difference. If it's going to be in a pipeline at some point, you are stuck with having at least well-formed xml. Seems to me your options boil down to: 1) Get the PHP to spit out well-formed xml and use PHPGenerator. 2) Use HTMLGenerator to call the php over http (it passes the results through TIDY, so it does the html->xml work for you). Not sure if it passes the request stuff on, but it probably uses jakarta commons httpclient, which has the functionality built in and shouldn't be too much work to make use of it by patching HTMLGenerator or extending it. BTW, httpclient supports cookies too - see the recent conversations on WebServiceProxyGenerator 3) Use WebServiceProxyGenerator (currently supports passing request on, but not cookies - a commercially sponsored patch may be making its way in to CVS soon though). This still requires that you get wellformed xml though. Geoff --------------------------------------------------------------------- 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]>