Re: OT: Debate Template/XML

From: Date: Thu, 31 Oct 2002 21:09:24 +0000
Subject: Re: OT: Debate Template/XML
References: 1 2  Groups: php.general.es 
Request: Send a blank email to general-es+get-28731@lists.php.net to get a copy of this message
On 19/04/1999 at 22:26 Alan Lavintman wrote: >por dios qeu acabe este debate ya me esta volviendo loco.. >xml es un estandar de datos carajo. >fast tempaltes es distinto carajo. lo unico de diseño qeu tiene xml es que >podes presentar atraves de xsl NAAAAAAAADAAAAAAAA >MASSSSSSSSSSSSSSSSSSSSSSSSSSSSS > ...y sigo.... Ahora va un articulo en PHPBuilder ------------------------------------------------- Using PHP and XML with Apache Cocoon Darren Beale First off, for those of you who don't know what Cocoon is, check out http://xml.apache.org where you can download the source and read up on it. In short Cocoon is a suite of Java Servlets that sit on your server waiting for .xml pages and then - if applicable - it applies the relevant XSL transformations. With one XML page and different XSL pages you can deliver rendered output suitable for your Browser, for example HTML for your Desktop or WML for your WAP device. I've been playing with Cocoon as a "learning" project for some time now but my main problem has been that of generating the XML dynamicly by using PHP and then using Cocoon to do the transformations. You can’t embed PHP into a .xml page because Cocoon doesn't recognise it and to write XSP's I needed to learn Java, which at the current time is not an option for me. Prompted by a few postings to the PHP4Beta list I realised that it would be possible to employ a workaround and still use PHP, so I set off to see if I could get it to work. Needless to say I did, so here is a very simple example of using PHP to generate XML dynamically and then using Cocoon to give me browser friendly mark-up. --------------------------------------------------- <jl>

« previous php.general.es (#28731) next »