Return-Path: Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 65809 invoked from network); 13 Oct 2000 14:03:48 -0000 Received: from atlrel1.hp.com (156.153.255.210) by locus.apache.org with SMTP; 13 Oct 2000 14:03:48 -0000 Received: from mailhost.rsn.hp.com (idiot.rsn.hp.com [15.99.200.11]) by atlrel1.hp.com (Postfix) with ESMTP id 6BB934AE for ; Fri, 13 Oct 2000 10:03:42 -0400 (EDT) Received: from rsn.hp.com (rsnext24.rsn.hp.com [15.99.248.24]) by mailhost.rsn.hp.com (8.9.3 (PHNE_18979)/8.9.3 SMKit7.0) with ESMTP id JAA16312; Fri, 13 Oct 2000 09:03:35 -0500 (CDT) Message-ID: <39E71638.DFA463A7@rsn.hp.com> Date: Fri, 13 Oct 2000 09:03:36 -0500 From: Stephen Fleischman Organization: Hewlett-Packard Company X-Mailer: Mozilla 4.74 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: PHP and XML References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N You can use the xml functions in PHP. This would not involve Cocoon at all. However, instead of processing with XSL you would have to to the transformation with PHP code by writing some callback functions. Alternatively, there is an XSL library for PHP in development: http://p4lib.hk-go.to/. I have done the first approach but not the second. The first approach, writing PHP code to do transformations, is more difficult in some ways than XSL - if you want mixed text and markup but processes the file alot faster than Cocoon. Also, no validation with DTDs. Stephen Fleischman Martin Bouman wrote: > > Dear Sir / Madam, > > I have a slight problem when using PHP with XML. > > I have a XML-file with pieces of PHP-scripts (that can get information from > a MySQL database) assigned to XML-variables. > I would then like to use XSL to transform the XML-file to HTML with the > database information in it. > The only problem is that the PHP-scripts are processed in the XML-file and > not in the genereated HTML-file (blanks appear). > Is there a way around this or another solution? > > Yours Sincerely, > > Martin Bouman > TeleCats BV, The Netherlands > > --------------------------------------------------------------------- > To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org > For additional commands, e-mail: cocoon-users-help@xml.apache.org