Problem mit PHP und XSLT

tippontop

Grünschnabel
Hallo zusammen,

ich ein absoluter PHP-Neuling und habe folgendes Problem:

Ich möchte eine XSL-Transformation durchführen und habe folgendes Bsp-Skript:
<?php
/* load the xml file and stylesheet as domdocuments */
$xsl = new DomDocument();
$xsl->load("hp.xsl");
$inputdom = new DomDocument();
$inputdom->load("hp.xml");

/* create the processor and import the stylesheet */
$proc = new XsltProcessor();
$xsl = $proc->importStylesheet($xsl);
$proc->setParameter(null, "titles", "Titles");

/* transform and output the xml document */
$newdom = $proc->transformToDoc($inputdom);
print $newdom->saveXML();
?>

Leider erhalte ich bei der Ausführung folgende Fehlermeldung: Fatal error: Class 'XsltProcessor' not found.

Habe gelesen, dass die Installation von libxslt notwendig ist. Ich verstehe aber beim besten Willen nicht wie.

Kann mir irgendjemand helfen?
Achso: Ich habe php5 auf WindowsXP installiert.

Viele Grüße.
 
php.ini öffnen, Semikolon vor ";extension=php_xsl.dll" entfernen, wenn PHP als Modul drin ist, Apache neu starten, Spaß haben
 
Die Seite ist zwar nicht schlecht und hilft mit sicher auch unter Unix weiter. Ich verwende aber Windows XP (was sich auch nicht ändern läßt).
 
So und hier kam ich mit den Googlesuchworten php5 libxslt installieren auf diese Seite: http://php3.de/manual/de/ref.domxml.php wo da denn steht

Note to Win32 Users: In order to enable this module on a Windows environment, you must copy one additional file from the DLL folder of the PHP/Win32 binary package to the SYSTEM32 folder of your Windows machine (Ex: C:\WINNT\SYSTEM32 or C:\WINDOWS\SYSTEM32). For PHP <= 4.2.0 copy libxml2.dll, for PHP >= 4.3.0 copy iconv.dll from the DLL folder to your SYSTEM32 folder.
 
Vielen Dank für den Tip das Problem mal bei google einzugeben. Darauf wäre ich echt nicht gekommen.

Wie ich sehe hat noch nicht ein einziger von Euch mit XSLT und php5 gearbeitet, sonst würde mal ein verwertbarer Vorschlag kommen.

Vielen Dank für die Hilfe
 
Zurück