Ray Hunter wrote:

> 
>> xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl',
>>  --> 'results.xml', NULL, $params);
>> $data = xslt_process($xh, 'results.xml',
>>  --> 'simple-search-display-results.xsl', NULL, NULL, NULL);
> 
> 
> What happens when you do the above...what is the var_dump of data?
> 
> --
> BigDog

I get this:
Warning: Sablotron error on line 1001: cannot open file
'/var/www/html/cdlib/search/results.xml' in
/var/www/html/cdlib/search/simple-search.php on line 24
 string(591) " " 

line 24 is the first call to xslt_process() above.

But I'd never tried using var_dump($data) before. It appears the the
second call is working fine: the file 'results.xml' exists already
becasue I've been using a command line XSL processor to test the
stylesheets. The second call to xslt_process() appears to have read
and processed the data which was in that file correctly because
var_dump() has inserted the result into the HTML following the error
message.
-- 
Richard
UEA/MUS::Record Library

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to