Hi ;) Look into the manual. The synopsis for the function is wrong, but the examples show how to do this. When I ran Your function it really did crash... But it's not surprising me now. Check this out:
<?php $xh = xslt_create(); $xsl = fopen("/web/xdom.pl/xslt/xprohomepage/homepage.xsl", "r"); $xml = fopen("test.xml", "r"); $xslc = fread($xsl, filesize("/web/xdom.pl/xslt/xprohomepage/homepage.xsl")); $xmlc = fread($xml, filesize("test.xml")); /* This could be like this, when You want it straigh from the files echo xslt_process($xh, '/web/xdom.pl/classes/test.xml', '/web/xdom.pl/xslt/xprohomepage/homepage.xsl'); */ /* Use this one if You want it variable based */ echo xslt_process($xh, 'arg:/_xml', 'arg:/_xsl', NULL, array('/_xml' => $xmlc, '/_xsl' => $xslc)); xslt_free($xh); ?> Greets ;) -- Chris Jarecki IT Project Manager Ipro http://www.ipro.pl/ -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]