<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>The XSLTProcessor class</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="xsl.examples-collection.html">Example collection.xml and collection.xsl files</a></div> <div class="next" style="text-align: right; float: right;"><a href="xsltprocessor.construct.html">XSLTProcessor::__construct</a></div> <div class="up"><a href="book.xsl.html">XSL</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="class.xsltprocessor" class="reference"> <h1 class="title">The XSLTProcessor class</h1> <div class="partintro"><p class="verinfo">(PHP 5)</p> <div class="section" id="xsltprocessor.intro"> <h2 class="title">Introduction</h2> <p class="para"> </p> </div> <div class="section" id="xsltprocessor.synopsis"> <h2 class="title">Class synopsis</h2> <div class="classsynopsis"> <div class="ooclass"></div> <div class="classsynopsisinfo"> <span class="ooclass"> <strong class="classname">XSLTProcessor</strong> </span> {</div> <div class="classsynopsisinfo classsynopsisinfo_comment">/* Methods */</div> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><a href="xsltprocessor.getparameter.html" class="methodname">getParameter</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$namespaceURI</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$localName</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="xsltprocessor.getsecurityprefs.html" class="methodname">XsltProcessor::getSecurityPrefs</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><a href="xsltprocessor.hasexsltsupport.html" class="methodname">hasExsltSupport</a></span> ( <span class="methodparam">void</span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="xsltprocessor.importstylesheet.html" class="methodname">importStylesheet</a></span> ( <span class="methodparam"><span class="type">object</span> <code class="parameter">$stylesheet</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">void</span> <span class="methodname"><a href="xsltprocessor.registerphpfunctions.html" class="methodname">registerPHPFunctions</a></span> ([ <span class="methodparam"><span class="type"><a href="language.pseudo-types.html#language.types.mixed" class="type mixed">mixed</a></span> <code class="parameter">$restrict</code></span> ] )</div> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><a href="xsltprocessor.removeparameter.html" class="methodname">removeParameter</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$namespaceURI</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$localName</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><a href="xsltprocessor.setparameter.html" class="methodname">setParameter</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$namespace</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$name</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$value</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">bool</span> <span class="methodname"><a href="xsltprocessor.setprofiling.html" class="methodname">setProfiling</a></span> ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$filename</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="modifier">public</span> <span class="type">int</span> <span class="methodname"><a href="xsltprocessor.setsecurityprefs.html" class="methodname">XsltProcessor::setSecurityPrefs</a></span> ( <span class="methodparam"><span class="type">int</span> <code class="parameter">$securityPrefs</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">DOMDocument</span> <span class="methodname"><a href="xsltprocessor.transformtodoc.html" class="methodname">transformToDoc</a></span> ( <span class="methodparam"><span class="type"><a href="class.domnode.html" class="type DOMNode">DOMNode</a></span> <code class="parameter">$doc</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">int</span> <span class="methodname"><a href="xsltprocessor.transformtouri.html" class="methodname">transformToURI</a></span> ( <span class="methodparam"><span class="type"><a href="class.domdocument.html" class="type DOMDocument">DOMDocument</a></span> <code class="parameter">$doc</code></span> , <span class="methodparam"><span class="type">string</span> <code class="parameter">$uri</code></span> )</div> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><a href="xsltprocessor.transformtoxml.html" class="methodname">transformToXML</a></span> ( <span class="methodparam"><span class="type"><a href="class.domdocument.html" class="type DOMDocument">DOMDocument</a></span> <code class="parameter">$doc</code></span> )</div> }</div> </div> </div> <h2>Table of Contents</h2><ul class="chunklist chunklist_reference"><li><a href="xsltprocessor.construct.html">XSLTProcessor::__construct</a> — Creates a new XSLTProcessor object</li><li><a href="xsltprocessor.getparameter.html">XSLTProcessor::getParameter</a> — Get value of a parameter</li><li><a href="xsltprocessor.getsecurityprefs.html">XsltProcessor::getSecurityPrefs</a> — Get security preferences</li><li><a href="xsltprocessor.hasexsltsupport.html">XSLTProcessor::hasExsltSupport</a> — Determine if PHP has EXSLT support</li><li><a href="xsltprocessor.importstylesheet.html">XSLTProcessor::importStylesheet</a> — Import stylesheet</li><li><a href="xsltprocessor.registerphpfunctions.html">XSLTProcessor::registerPHPFunctions</a> — Enables the ability to use PHP functions as XSLT functions</li><li><a href="xsltprocessor.removeparameter.html">XSLTProcessor::removeParameter</a> — Remove parameter</li><li><a href="xsltprocessor.setparameter.html">XSLTProcessor::setParameter</a> — Set value for a parameter</li><li><a href="xsltprocessor.setprofiling.html">XSLTProcessor::setProfiling</a> — Sets profiling output file</li><li><a href="xsltprocessor.setsecurityprefs.html">XsltProcessor::setSecurityPrefs</a> — Set security preferences</li><li><a href="xsltprocessor.transformtodoc.html">XSLTProcessor::transformToDoc</a> — Transform to a DOMDocument</li><li><a href="xsltprocessor.transformtouri.html">XSLTProcessor::transformToUri</a> — Transform to URI</li><li><a href="xsltprocessor.transformtoxml.html">XSLTProcessor::transformToXML</a> — Transform to XML</li></ul> </div> <hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="xsl.examples-collection.html">Example collection.xml and collection.xsl files</a></div> <div class="next" style="text-align: right; float: right;"><a href="xsltprocessor.construct.html">XSLTProcessor::__construct</a></div> <div class="up"><a href="book.xsl.html">XSL</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>