View previous topic :: View next topic |
Author |
Message |
equinox0r l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/15747380254242c3efe10f0.jpg)
Joined: 18 Feb 2004 Posts: 614
|
Posted: Tue Jun 06, 2006 10:05 am Post subject: [OT] PHP-Versionsproblem: XSLT - TransformToDoc(); |
|
|
Hi.
Ich hab auf meinem Rootserver (Gentoo Linux) heute auf PHP 5.1.4 upgedated (von 5.0.5-r5).
Jetzt hab ich aber das Problem, dass meine Anwendungen nicht mehr korrekt ausgeführt werden, speziell geht es hierbei um die xslt-Funktion TransformToDoc();
Code-Schnipsel:
Code: | if(($xslt = DOMDocument::loadXML((string) $this->constructor->doc)) &&
($xml = DOMDocument::loadXML((string) utf8_decode($this->tree->getSource(0)))))
{
$proc = New XsltProcessor();
$proc->registerPhpFunctions();
$xsl = $proc->importStylesheet($xslt);
$newdom = $proc->transformToDoc($xml);
$sxe = simplexml_import_dom($newdom);
#$this->addToDocument($this->xmlDebugOutput());
$this->addToDocument($sxe->asXML());
} else {
$this->xmlDebugOutput();
} |
Die Ausgabe ist folgende:
Code: | Warning: XSLTProcessor::transformToDoc() [function.XSLTProcessor-transformToDoc]: Unable to call handler template::fetch() in /data/www/quantum/htdocs/quantum-developement/class/scriptlet/html.class.php on line 89
Warning: XSLTProcessor::transformToDoc() [function.XSLTProcessor-transformToDoc]: xmlXPathCompiledEval: evaluation failed in /data/www/quantum/htdocs/quantum-developement/class/scriptlet/html.class.php on line 89
Warning: XSLTProcessor::transformToDoc() [function.XSLTProcessor-transformToDoc]: runtime error: file /data/www/quantum/htdocs/quantum-developement/htdocs/ line 105 element value-of in /data/www/quantum/htdocs/quantum-developement/class/scriptlet/html.class.php on line 89
Warning: XSLTProcessor::transformToDoc() [function.XSLTProcessor-transformToDoc]: xsltValueOf: text copy failed in /data/www/quantum/htdocs/quantum-developement/class/scriptlet/html.class.php on line 89
Warning: simplexml_import_dom() expects parameter 1 to be object, boolean given in /data/www/quantum/htdocs/quantum-developement/class/scriptlet/html.class.php on line 90
Fatal error: Call to a member function asXML() on a non-object in /data/www/quantum/htdocs/quantum-developement/class/scriptlet/html.class.php on line 92 |
Zeile 89 ist:
$newdom = $proc->transformToDoc($xml);
Hat dazu jemand ne Idee?
Grüße
ich ![Smile :)](images/smiles/icon_smile.gif) _________________ AMD 2400+ XP | 1024 MB RAM | ATI Radeon 9600Pro
Gentoo Base System version 1.4.16 | Portage 2.0.51.19 | 2.6.11-gentoo-r9 Kernel |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Nezzar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/591890943446b2ecebb8d9.jpg)
Joined: 19 Apr 2006 Posts: 15 Location: Germany
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|