// Xml and XSL files
$xml_file = "./sections/sitedata.xml";
$xsl_file = "./sections/".$page.".xsl";
//Check for Extra Parameters
$xtra = "A Value;"
/* you can also give multiple by changing $xtra into $xtra = array("name" => "value", "name2" => "value2"); then changing out the array('xtra' => $xtra) to just $xtra. */
// Allocate a new XSLT processor
$xh = xslt_create();
$fileBase = 'file://' . getcwd () . '/';
xslt_set_base ( $xh, $fileBase );
// Process the document
$result = xslt_process($xh, $xml_file, $xsl_file, NULL, array(), array('xtra' => $xtra));
if (!$result) {
// Something croaked. Show the error
echo 'XSLT processing error: ' .xslt_error($xh) ;
}