[PHP] Re: Using two XSLT stylesheets

2003-10-21 Thread rich
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));

Re: [PHP] Re: Using two XSLT stylesheets

2003-10-20 Thread Raditha Dissanayake
Hi, Catching up with my list mails. As Ray has pointed out you can only do one transformation with one instance. That's because the underline parsers are good for one transformation only. Maybe if you would post your xml and xsl we could give it a shot. BTW: OT: if you are ok with perl, doing

[PHP] Re: Using two XSLT stylesheets

2003-10-19 Thread rich
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);

Re: [PHP] Re: Using two XSLT stylesheets

2003-10-19 Thread Ray Hunter
On Sun, 2003-10-19 at 18:01, rich wrote: 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 =