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.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php