Aha! I've worked out a (better?) way of doing: <? parse_str($_SERVER['QUERY_STRING']); $params = array("keywords" => $keywords);
$library_xml_file = "library.xml"; $search_xsl_file = "simple-search.xsl"; $display_xsl_file = "display-results.xsl"; $library_xml_string = join('', file($library_xml_file)); $search_xsl_string = join('', file($search_xsl_file)); $display_xsl_string = join('', file($display_xsl_file)); $arg_buffer = array("/xml" => $library_xml_string, "/xslt" => $search_xsl_string); $xh = xslt_create(); $results_xml_string = xslt_process($xh, "arg:/xml", "arg:/xslt", NULL, $arg_buffer, $params); xslt_free($xh); $arg_buffer = array("/xml" => $results_xml_string, "/xslt" => $display_xsl_string); $xh = xslt_create(); $results_html_string = xslt_process($xh, "arg:/xml", "arg:/xslt", NULL, $arg_buffer); echo $results_html_string; xslt_free($xh); ?> Thanks for all your suggestions! -- Rich. UEA/MUS::Record Library -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php