Raj,
When you install php on windows, you must copy 3 files into the windows\system32 directory before using xslt_create()
These files are in your installed php/dlls directory
expat.dll
sablot.dll
iconv.dll
Then edit your php.ini file (c:\windowsdir\php.ini)
and uncomment the line extension=php_xslt.dll (remove the ; from the beginning)
Restart php and apache, it should work ;)
Let me know if that helped.
Thanks for the reply. I had done all these and also phpinfo page was showing that xsl is enabled. The way to sort this out in PHP 5 is when you are transforming the file from one format to other format (xml->php) use the below code for the transformation its for php 5
$xml = new DomDocument;
$xml->load($xmlfilename);
$xsl = new DomDocument;
$xsl->load($xsltfilename);
$proc = new xsltprocessor;
$proc->importStyleSheet($xsl);
$result = $proc->transformToXML($xml);
After changing the code dont forget to comment
extension=php_domxml.dll in the ini file and restart the server. Now it should work.