cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephen Fleischman <>
Subject Re: PHP and XML
Date Fri, 13 Oct 2000 14:03:36 GMT
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: 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:
> For additional commands, e-mail:

View raw message