prepare.inc 380 B

1234567891011121314151617181920
  1. <?php
  2. $dom = new domDocument;
  3. $dom->load(dirname(__FILE__)."/xslt.xml");
  4. if(!$dom) {
  5. echo "Error while parsing the document\n";
  6. exit;
  7. }
  8. $xsl = new domDocument;
  9. $xsl->load(dirname(__FILE__)."/xslt.xsl");
  10. if(!$xsl) {
  11. echo "Error while parsing the document\n";
  12. exit;
  13. }
  14. $proc = new xsltprocessor;
  15. if(!$proc) {
  16. echo "Error while making xsltprocessor object\n";
  17. exit;
  18. }
  19. ?>