function.domxsltstylesheet-process.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 179 行
HTML
179 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Applies the XSLT-Transformation on a DomDocument Object</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.domprocessinginstruction-target.html">DomProcessingInstruction->target</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.domxsltstylesheet-result-dump-file.html">DomXsltStylesheet->result_dump_file</a></div> <div class="up"><a href="ref.domxml.html">DOM XML Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.domxsltstylesheet-process" class="refentry"> <div class="refnamediv"> <h1 class="refname">DomXsltStylesheet->process</h1> <p class="verinfo">(No version information available, might be only in CVS)</p><p class="refpurpose"><span class="refname">DomXsltStylesheet->process</span> — <span class="dc-title"> Applies the XSLT-Transformation on a DomDocument Object </span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="classsynopsis"> <div class="ooclass"><b class="classname">DomXsltStylesheet</b></div> <div class="methodsynopsis dc-description"> <span class="type">DomDocument</span> <span class="methodname"><b><b>process</b></b></span> ( <span class="methodparam"><span class="type"><a href="class.domdocument.html" class="type DomDocument">DomDocument</a></span> <tt class="parameter">$xml_doc</tt></span> [, <span class="methodparam"><span class="type">array</span> <tt class="parameter">$xslt_params</tt></span> [, <span class="methodparam"><span class="type">bool</span> <tt class="parameter">$is_xpath_param</tt></span> [, <span class="methodparam"><span class="type">string</span> <tt class="parameter">$profile_filename</tt></span> ]]] )</div> </div> <p class="para"> Applies an XSLT Transformation on the given <a href="class.domdocument.html" class="classname">DomDocument</a> object. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">xml_doc</tt></i></span> <dd> <p class="para"> The XML document being transformed, as a <a href="class.domdocument.html" class="classname">DomDocument</a> object. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">xslt_params</tt></i></span> <dd> <p class="para"> An associative array that takes pairs of parameter names and values. </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">is_xpath_param</tt></i></span> <dd> <p class="para"> If set to <b><tt>FALSE</tt></b> the values of the <i><tt class="parameter">xslt_params</tt></i> will be quoted. This is the default behavior. It allows you to pass the values as PHP strings. </p> <blockquote><p><b class="note">Note</b>: If your strings contains both single and double quotes, you must take care of quoting all the values by yourself and set this parameter to <b><tt>TRUE</tt></b>. <br /> </p></blockquote> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">profile_filename</tt></i></span> <dd> <p class="para"> Set this to the path of a filename, if you want profiling information. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns the result of the processing, as a <a href="class.domdocument.html" class="classname">DomDocument</a> object. </p> </div> <div class="refsect1 migration"> <h3 class="title">Migrating to PHP 5</h3> <p class="para"> Use <a href="xsltprocessor.setparameter.html" class="function">XSLTProcessor::setParameter()</a> and <b>XSLTProcessor::transform-to-doc()</b>. </p> </div> <div class="refsect1 changelog"> <h3 class="title">ChangeLog</h3> <p class="para"> <table class="informaltable"> <colgroup> <thead valign="middle"> <tr valign="middle"> <th colspan="1">Version</th> <th colspan="1">Description</th> </tr> </thead> <tbody valign="middle" class="tbody"> <tr valign="middle"> <td colspan="1" rowspan="1" align="left">4.3.0</td> <td colspan="1" rowspan="1" align="left"> The <i><tt class="parameter">profile_filename</tt></i> parameter was added. </td> </tr> </tbody> </colgroup> </table> </p> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.domxml-xslt-stylesheet.html" class="function" rel="rdfs-seeAlso">domxml_xslt_stylesheet()</a></li> <li class="member"><a href="function.domxml-xslt-stylesheet-file.html" class="function" rel="rdfs-seeAlso">domxml_xslt_stylesheet_file()</a></li> <li class="member"><a href="function.domxml-xslt-stylesheet-doc.html" class="function" rel="rdfs-seeAlso">domxml_xslt_stylesheet_doc()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.domprocessinginstruction-target.html">DomProcessingInstruction->target</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.domxsltstylesheet-result-dump-file.html">DomXsltStylesheet->result_dump_file</a></div> <div class="up"><a href="ref.domxml.html">DOM XML Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?