Re: [PHP4BETA] Can PHP do XML + XSL = HTML stuff ?
| From: | Colin Putney | Date: | Mon, 13 Mar 2000 05:37:52 +0000 |
| Subject: | Re: [PHP4BETA] Can PHP do XML + XSL = HTML stuff ? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12012@lists.php.net to get a copy of this message | ||
-- Lukasz Felsztukier <L.Felsztukier@digitalone.pl> wrote:
> You *don't* transform ANY data from database into XML. I'll lay it
> out nicely: 1) XML file:
> <some_tag>some_data_in_it</some_tag>
> <stuff_from_database></stuff_from_database> (notice it's empty)
> 2) some XSL file defining how the XML data are going to look like
> 3) I grab data off the database
> 4) I put'em into the previously left-empty tag, <stuff_from_database>
> 5) I do the transformation using parser
> 6) I get HTML, do some more magic on it
> 7) I finally display this to client
That sounds perfectly reasonable to me. I theory, you could use Xalan
from the Apache XML project to do your stylesheet transformations.
You'd have to use Mr. Ruby's Java module to get at the Xalan classes,
and that too is theoretically possible. Getting it to actually work in
practice is the catch.
Sounds like a really neat project... have fun! :)
Colin
---------------------------------------------
Colin Putney cputney@whistler.net
Whistler Networks http://www.whistler.net/