Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[OT] PHP-Versionsproblem: XSLT - TransformToDoc();
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
equinox0r
l33t
l33t


Joined: 18 Feb 2004
Posts: 614

PostPosted: Tue Jun 06, 2006 10:05 am    Post subject: [OT] PHP-Versionsproblem: XSLT - TransformToDoc(); Reply with quote

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 :)
_________________
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
View user's profile Send private message
Nezzar
n00b
n00b


Joined: 19 Apr 2006
Posts: 15
Location: Germany

PostPosted: Tue Jun 06, 2006 12:22 pm    Post subject: Reply with quote

Sieh dir mal das hier an: http://de2.php.net/manual/en/function.xsl-xsltprocessor-transform-to-xml.php#48765
Es hat den Anschein, dass dein Problem damit irgendwas zu tun hat.

Edit: Das ist zwar ein Kommentar zu transformToXML, nichtsdestotrotz (schreibt man das zusammen?) werden diese Funktionen ja intern wohl dieselben Routinen benutzen.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum