php-src/ext/xsl/tests/prepare.inc
2003-11-29 13:01:19 +00:00

21 lines
380 B
PHP

<?php
$dom = new domDocument;
$dom->load(dirname(__FILE__)."/xslt.xml");
if(!$dom) {
echo "Error while parsing the document\n";
exit;
}
$xsl = new domDocument;
$xsl->load(dirname(__FILE__)."/xslt.xsl");
if(!$xsl) {
echo "Error while parsing the document\n";
exit;
}
$proc = new xsltprocessor;
if(!$proc) {
echo "Error while making xsltprocessor object\n";
exit;
}
?>