From 8c7441319b5e3ae55a341bcfb75c2b25cd9c72bd Mon Sep 17 00:00:00 2001 From: David Farning Date: Tue, 03 Mar 2009 23:54:43 +0000 Subject: initial commit --- (limited to 'index.php') diff --git a/index.php b/index.php new file mode 100644 index 0000000..add7a8a --- /dev/null +++ b/index.php @@ -0,0 +1,37 @@ + $_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(); + +?> \ No newline at end of file -- cgit v0.9.1