You are here: XSLT doesn't work anymore since PHP has been upgraded from 5.0.3 to 5.1.1 « PHP « IT news, forums, messages
XSLT doesn't work anymore since PHP has been upgraded from 5.0.3 to 5.1.1

Posted by Tobi Reif on 10/06/45 11:34

Hi

My ISP upgraded from 5.0.3 to 5.1.1. Since then, XSLT (at least my
script which uses it) doesn't work anymore.

The first error message on

http://www.pinkjuice.com/hayashi/materials/

is

Warning: XSLTProcessor::importStylesheet()
[function.importStylesheet]: Undefined variable in
/[...]/hayashi/pages.php5 on line 12

pages.php5:

<?php
# print dirname(__FILE__);

$xslt = new DomDocument();
$xslt->load("this.xslt");
$inputdom = new DomDocument();
$inputdom->load("../page_template.xml");

$proc = new XsltProcessor();
# previous version of the following line:
# $xslt = $proc->importStylesheet($xslt);
$proc->importStylesheet($xslt);
$proc->setParameter(null, "pagedir", $pagedir);
# seems to set params *and* toplevel variables
# $proc->setParameter(null, "topdir", $topdir);

$newdom = $proc->transformToDoc($inputdom);
print $newdom->saveXML();

?>

Thanks in advance,
Tobi

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация