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 — ファイル中の XSL 文章から DomXsltStylesheet オブジェクトを作成する
説明
DomXsltStylesheet domxml_xslt_stylesheet_file
( string $xsl_file
)
与えられた XSL ファイルから DomXsltStylesheet オブジェクトを作成します。
パラメータ
- xsl_file
-
文字列としての XSL 文章へのパス
返り値
DomXsltStylesheet の新規インスタンスを返します。
PHP 5 への移行
パラメータとして DOMDocument::load($xsl_file) を渡して XSLTProcessor::importStylesheet() をコールしてください。
参考
- DomXsltStylesheet->process
- domxml_xslt_stylesheet() - 文字列での XSL 文章から DomXsltStylesheet オブジェクトを作成する
- domxml_xslt_stylesheet_doc() - DomDocument オブジェクトから DomXsltStylesheet オブジェクトを作成する
domxml_xslt_stylesheet_file
info at sgonda dot de
30-Oct-2003 09:38
30-Oct-2003 09:38
