note 9721 modified in xslt_transform by ronabop
| From: | ronabop@php.net | Date: | Fri, 24 Nov 2000 06:53:41 +0000 |
| Subject: | note 9721 modified in xslt_transform by ronabop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8096@lists.php.net to get a copy of this message | ||
Using the class at http://www.subpop.com/~dietricha/php_sablot.zip
by dietricha@subpop.com
<?php
include "class.XSLTransformer.php";
$params = array("display" => "catagory");
$xsl = join ('', file ('./catalogcatagory.xsl'));
$xml = join ('', file ('./catalog.xml'));
$xslt = new XSLTransformer();
$xslt->setVars('./catalogcatagory.xsl','./catalog.xml',$params);
if($xslt->xslt_transform()){
echo $xslt->getOutput();
} else {
echo $xslt->getError();
}
?>
http://www.php.net/manual/function.xslt-transform.php