Back to index

php5  5.3.10
prepare.inc
Go to the documentation of this file.
00001 <?php
00002 $dom = new domDocument;
00003 $dom->load(dirname(__FILE__)."/xslt.xml");
00004 if(!$dom) {
00005   echo "Error while parsing the document\n";
00006   exit;
00007 }
00008 $xsl = new domDocument;
00009 $xsl->load(dirname(__FILE__)."/xslt.xsl");
00010 if(!$xsl) {
00011   echo "Error while parsing the document\n";
00012   exit;
00013 }
00014 $proc = new xsltprocessor;
00015 if(!$proc) {
00016   echo "Error while making xsltprocessor object\n";
00017   exit;
00018 }
00019 
00020 ?>