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