Re: Re: Using two XSLT stylesheets

From: Date: Mon, 20 Oct 2003 00:46:49 +0000
Subject: Re: Re: Using two XSLT stylesheets
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-166707@lists.php.net to get a copy of this message
On Sun, 2003-10-19 at 18:01, rich wrote: > OK, > > This is my latest idea to try and do this: > > $xh = xslt_create(); > > parse_str($_SERVER['QUERY_STRING']); > $params = array("keywords" => $keywords); > > $results = xslt_process($xh, 'library.xml', 'simple-search.xsl', NULL, > NULL, > -->$params); > $f = fopen('results.xml','w'); > fwrite($f, $results); > fclose($f); > $data = xslt_process($xh, 'results.xml', 'display-results.xsl', NULL, NULL, > -->NULL); > echo $data; > > xslt_free($xh); Try using a new xslt process for the second transformation. So do the first transformation and then close the xslt process. Then create a new xslt process and do the second transformation, then close the 2nd xslt process. -- Ray

« previous php.general (#166707) next »