Re: Re: Using two XSLT stylesheets

From: Date: Mon, 20 Oct 2003 13:56:25 +0000
Subject: Re: Re: Using two XSLT stylesheets
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-166749@lists.php.net to get a copy of this message
Hi, Catching up with my list mails. As Ray has pointed out you can only do one transformation with one instance. That's because the underline parsers are good for one transformation only. Maybe if you would post your xml and xsl we could give it a shot. BTW: OT: if you are ok with perl, doing this with perl is a heck of a lot easier. 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); 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
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha/megaupload/ Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.

« previous php.general (#166749) next »