Re: Using two XSLT stylesheets

From: Date: Mon, 20 Oct 2003 00:01:52 +0000
Subject: Re: Using two XSLT stylesheets
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-166693@lists.php.net to get a copy of this message
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); But, of course, it just throws up messages saying I can't write to results.xml! See http://www.cursus.uea.ac.uk/cdlib/ for error messages in action (search terms which will find records include 'Boulez', 'Messiaen'). Does anyone know why: xslt_process($xh, 'sample.xml', 'sample.xsl', 'result.xml') doesn't work? (lifted straight from the manual) Cheers, Rich

« previous php.general (#166693) next »