date( "F j, Y g:i a" ) ); // Create a DomDocument object from an xml file. if( !$domXmlObj = domxml_open_file( $xmlFile ) ) { die( "Cannot parse the xml file." ); } // Create a DomDocument object from the xslt file. $domXsltObj = domxml_xslt_stylesheet_file( $xsltFile ); // Create a DomDocument object from the xslt transformation // of the xml and xslt file. $domTranObj = $domXsltObj->process( $domXmlObj, $xsltParam ); // Create an HTML file of the tranformation $domXsltObj->result_dump_file( $domTranObj, $htmlFile ); // Display example.html file. include( $htmlFile ); ?>