PHP and XSLT, anyone working with these?
| From: | Bryan Willett | Date: | Mon, 19 Mar 2001 07:04:43 +0000 |
| Subject: | PHP and XSLT, anyone working with these? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-44493@lists.php.net to get a copy of this message | ||
I know that the XSLT functionality in PHP is experimental but is anyone
doing any work with these?
I've written some basic extensions to PHPLIB for XSLT and I am curious if
anyone has some more advanced research they can share.
The code that I have will return a dataset, format into XML, and then
transform it using an XSLT stylesheet (template).
Usage:
$db = new DB_Sql_Xml;
$db->query("select * from foo");
$db->get_transform("xslt_file.xslt", $db->get_xml());
I also have add XSLT parameter functionality working. While I have this
code integrated into PHPLIB it could also function as a stand alone tranform
class. I took some code from a phpbuilder article on this subject and
improved it.
You can see the class here:
www.merchantempirs.net/db_xsl.inc
So has anyone else done much with PHP and XSLT?