Hi Everybody,
I got the solution. To make this work in PHP 5 follow the below instructions
1. Copy expat.dll,sablot.dll and iconv.dll to Windows/System 32 directory
2. Set your extension directory to Windows/System 32 directory
3. Most important thing is while transforming the document from one form to other use the below code 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);
4. comment the line
extension=php_domxml.dll
This is because according to the php manual it shouldn't be included in php5, as it was replaced by the new DOM extension. The old DOM XML extension (php_domxml.dll) from PHP 4, has been moved to the PECL repository and is no longer bundled with PHP as of PHP 5.0.0..
5. If the line extension=php_xsl.dll is commented then uncomment(Remove the semi-colon) it.
6. Restart the server. It should work now :)