Using two XSLT stylesheets
| From: | rich | Date: | Sat, 18 Oct 2003 11:32:08 +0000 |
| Subject: | Using two XSLT stylesheets | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-166614@lists.php.net to get a copy of this message | ||
I'm working on a read only database.
I have the data encoded as XML and am writing the queries
using XSLT stylesheets. The only way I can find (being, of
course, restricted to XSLT 1.0 on PHP) of executing the
required queries requires two stylesheets.
The generates a result tree which needs to be proceesed by
the second. But I can't find a way of doing this. I've tried:
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);
and:
$results = xslt_process($xh, 'library.xml', 'simple-search-get-results.xsl',
--> NULL, NULL, $params);
$data = xslt_process($xh, $results, 'simple-search-display-results.xsl',
--> NULL, NULL, NULL);
neither of which work at all.
Any ideas?
Cheers,
rich.
--
UEA/MUS::Record Library
http://www.cursus.uea.ac.uk/cdlib/