PHP newbie question on xslt

From: Date: Mon, 26 Mar 2007 14:07:48 +0000
Subject: PHP newbie question on xslt
Groups: php.general 
Request: Send a blank email to php-general+get-251430@lists.php.net to get a copy of this message
I've been trying some of the programs in the PHP manual at <http://www.php.net/manual/en/> in chapters CLXXXI and CLXXXII to work, for example ---------------------------- // Example 2519. Creating an XSLTProcessor <?php $xml_filename = "collection.xml"; $xsl_filename= "collection.xsl"; $doc = new DOMDocument(); $xsl = new XSLTProcessor(); $doc->load($xsl_filename); $xsl->importStyleSheet($doc); $doc->load($xml_filename); echo $xsl->transformToXML($doc); ?> ---------------------------- (where I have added the two filenames, and copied the files collection.x?l from the manual). When I run PHP I get: ---------------------------- [root@alfred Test]# php ex2519.php // Example 2519. Creating an XSLTProcessor Segmentation fault ---------------------------- I'm running the program under Fedora-6 Linux with the latest versions of all programs. Is there something I should have included, to get the program to run? Any advice or suggestions gratefully received. -- Timothy Murphy e-mail (<80k only): tim /at/ birdsnest.maths.tcd.ie tel: +353-86-2336090, +353-1-2842366 s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

« previous php.general (#251430) next »