Re: [PHP4BETA] Can PHP do XML + XSL = HTML stuff ?

From: Date: Mon, 13 Mar 2000 02:26:01 +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-12008@lists.php.net to get a copy of this message
----- Original Message ----- From: Manuel Lemos <mlemos@acm.org> To: Lukasz Felsztukier <L.Felsztukier@digitalone.pl> Cc: <php4beta@lists.php.net> Sent: Monday, March 13, 2000 2:11 AM Subject: Re: [PHP4BETA] Can PHP do XML + XSL = HTML stuff ? > >No - you take XML file, XSL stylesheets, grab some data from a database > >(updated often - no need to cache, all files are relatively small and there > >is few of them - no overloading) and produce HTML. How can I do this ? It's > >rather important to me :-) Cheers, Lukasz > [cut] > Anyway, I still see little point in transforming data from database into > XML to have it transformed into HTML, instead of transforming the data in > the database to HTML directly like any PHP database application does. 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's what I want to achieve. While replying to this, please don't bother with the "resonablity" aspect of it - I need technical info, not a preach :-) Cheers, Lukasz

« previous php.version4 (#12008) next »