DOM XML (PHP 4) 函数
在线手册:中文 英文
PHP手册

domxml_xslt_stylesheet_file

(PHP 4 >= 4.2.0)

domxml_xslt_stylesheet_file Creates a DomXsltStylesheet Object from an XSL document in a file

说明

DomXsltStylesheet domxml_xslt_stylesheet_file ( string $xsl_file )

Creates a DomXsltStylesheet object from the given XSL file.

参数

xsl_file

The path to the XSL document, as a string.

返回值

Returns a new instance of DomXsltStylesheet.

Migrating to PHP 5

Call XSLTProcessor::importStylesheet() with DOMDocument::load($xsl_file) as parameter.

参见


DOM XML (PHP 4) 函数
在线手册:中文 英文
PHP手册
PHP手册 - N: Creates a DomXsltStylesheet Object from an XSL document in a file

用户评论:

info at sgonda dot de (30-Oct-2003 07:38)

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();

?>