Apache Today [Your Apache News Source] Invalid Position
Your Daily Source for Apache News and Information   Invalid Position
Breaking News Preferences Contribute Triggers Link Us Search About
PHPBuilder: Using PHP and XML with Apache Cocoon
(Jun 19th, 17:13:17 )

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

Complete Story.


Printed from Apache Today (https://apachetoday.com).
https://apachetoday.com/news_story.php3?ltsn=2000-06-19-005-01-PS

Invalid Position
About Triggers Newsletters Media Kit Security Triggers Login


All times are recorded in UTC.
Linux is a trademark of Linus Torvalds.
Powered by Linux 2.2.12, Apache 1.3.9. and PHP 3.14
Copyright INT Media Group, Incorporated All Rights Reserved.
Legal Notices,  Licensing, Reprints, & Permissions,  Privacy Policy.
http://www.internet.com/