mirror of
https://github.com/php/php-src.git
synced 2024-12-13 20:05:26 +08:00
21 lines
380 B
PHP
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;
|
|
}
|
|
|
|
?>
|