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