Here's is a example for use:
<?php
$xmldoc = domxml_open_file("dom.xml");
$xsldoc = domxml_xslt_stylesheet_file ("dom.xsl");
$result = $xsldoc->process($xmldoc);
print $result->dump_mem();
?>
domxml_xslt_stylesheet_file
(PHP 4 >= 4.2.0)
domxml_xslt_stylesheet_file — ساخت شی DomXsltStylesheet از سند XSL در فایل
Description
DomXsltStylesheet domxml_xslt_stylesheet_file
( string $xsl_file
)
ساخت شی DomXsltStylesheet از فایل داده شده XSL.
Parameters
- xsl_file
-
مسیر سند XSL document به عنوان رشته.
Return Values
بازگرداندن نمونه جدید DomXsltStylesheet.
مهاجرت به PHP 5
فراخوانی XSLTProcessor::importStylesheet() به همراه DOMDocument::load($xsl_file) به عنوان پارامتر.
See Also
- DomXsltStylesheet->process
- domxml_xslt_stylesheet() - ساخت شی DomXsltStylesheet از سند XSL در رشته
- domxml_xslt_stylesheet_doc() - ساخت شی DomXsltStylesheet از شی DomDocument
info at sgonda dot de ¶
9 years ago
