$_GET['page'] ); /* load the xml file and stylesheet as domdocuments */ $xsl = new DomDocument(); $xsl->load("$xslfilename.xsl"); $xml = new DomDocument(); $xml->load("index.xml"); /* create the processor and import the stylesheet */ $proc = new XsltProcessor(); $xsl = $proc->importStylesheet($xsl); $proc->setParameter(null, $arguments); /* transform and output the xml document */ $newdom = $proc->transformToDoc($xml); print $newdom->saveXML(); ?>