This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Announce: PHP Class Wrapper for Sablot Extension
- To: xsl-list at mulberrytech dot com
- Subject: Announce: PHP Class Wrapper for Sablot Extension
- From: Bill Humphries <bill at whump dot com>
- Date: Mon, 7 Aug 2000 23:51:18 -0700
- References: <44F0B703A897D311B4410008C7DF7068A1A19E@exchange.stibo.dk>
- Reply-To: xsl-list at mulberrytech dot com
Steven Liu wrote a PHP 4.0 extension that adds the Sablotron XSLT engine. To that, I've contributed a PHP include file that wraps up the functionality of the Sablotron interface in a PHP 'class.'
The Sablotron Extension (Unix/Linux) is at:
http://p4lib.hk-go.to/
The PHP classes and examples are in:
http://p4lib.hk-go.to/download/php_sablot_demo_1.tar.gz
Doumentation for the PHP class files is at:
http://www.whump.com/www/phpSablot.html
Usage of the PHP class is straightforward:
<?php
include ('fileReader.inc' );
include ('xslTransform.inc');
$transform = new xslTransform();
$transform->setXsl("transform.xsl");
$transform->setXml("data.xml");
$transform->setParameter("foo","bar");
$transform->apply();
if($transform->getError() == 0)
{
print $string;
}
else
{
echo "<p class=\"warning\">",$transform->getErrorstr(),"</p>";
}
?>
-- Bill Humphries <bill@whump.com>
http://www.whump.com/moreLikeThis/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list