PHP newbie question on xslt

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux