Re: [phplib] checked in XSLT extensions From: Ben Curtis (benc <email protected>)
Date: 03/20/01

Though I haven't had a chance to use it yet, I have to say thanks for this addition. I've done a fair bit with XML/XSLT and this encapsulates the various methods I have scattered around for displaying data from a DB using XML/XSLT. So, I guess, this is just a note of encouragement/thanks for making my life a little easier. :)

On Sat, Mar 17, 2001 at 05:50:38PM -0700, Bryan Willett wrote:
>
> I checked in my XSLT extension to PHPLIB under the contrib directory.
>
> Using that extension a dataset can be returned from a database, formated
> into XML, and then transformed with a XSLT stylesheet (template).
>
> This class supports passing parameters to the XSLT stylesheet, using
> add_parameter("parameter_name", "parameter_value").
>
> Both the XSL and XML that is passed into the class can be a string value
> or a file name.
>
> Usage:
>
> $db = new DB_Sql_Xml;
> $db->query("select * from foo");
> echo $db->get_transform("xslt_file.xslt", $db->get_xml());
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: phplib-unsubscribe <email protected>
> For additional commands, e-mail: phplib-help <email protected>

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>