Re: Using two XSLT stylesheets

From: Date: Sat, 18 Oct 2003 23:54:48 +0000
Subject: Re: Using two XSLT stylesheets
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-166629@lists.php.net to get a copy of this message
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

« previous php.general (#166629) next »