<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.xsl.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'class.xsltprocessor.php',
    1 => 'XSLTProcessor',
    2 => 'The XSLTProcessor class',
  ),
  'up' => 
  array (
    0 => 'book.xsl.php',
    1 => 'XSL',
  ),
  'prev' => 
  array (
    0 => 'xsl.examples-errors.php',
    1 => 'Error handling with libxml error handling functions',
  ),
  'next' => 
  array (
    0 => 'xsltprocessor.construct.php',
    1 => 'XSLTProcessor::__construct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/xsl/xsltprocessor.xml',
  ),
  'history' => 
  array (
  ),
  'extra_header_links' => 
  array (
    'rel' => 'alternate',
    'href' => '/manual/en/feeds/class.xsltprocessor.atom',
    'type' => 'application/atom+xml',
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="class.xsltprocessor" class="reference">
 <h1 class="title">The XSLTProcessor class</h1>
 
 
 <div class="partintro"><p class="verinfo">(PHP 5, PHP 7, PHP 8)</p>
 

  <div class="section" id="xsltprocessor.intro">
   <h2 class="title">Introduzione</h2>

   <p class="para">
    
   </p>
  </div>

 
  <div class="section" id="xsltprocessor.synopsis">
   <h2 class="title">Sommario della classe</h2>
 

   <div class="classsynopsis"><div class="classsynopsisinfo">
    
     <span class="modifier">class</span> <strong class="classname"><strong class="classname">XSLTProcessor</strong></strong>
     {</div>

    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Proprietà  */</div>
    <div class="fieldsynopsis">
     <span class="modifier">public</span>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
      <var class="varname"><a href="class.xsltprocessor.php#xsltprocessor.props.doxinclude">$<var class="varname">doXInclude</var></a></var><span class="initializer"> = false</span>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span>
      <var class="varname"><a href="class.xsltprocessor.php#xsltprocessor.props.clonedocument">$<var class="varname">cloneDocument</var></a></var><span class="initializer"> = false</span>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="varname"><a href="class.xsltprocessor.php#xsltprocessor.props.maxtemplatedepth">$<var class="varname">maxTemplateDepth</var></a></var>;</div>

    <div class="fieldsynopsis"><span class="modifier">public</span>
     <span class="type"><a href="language.types.integer.php" class="type int">int</a></span>
      <var class="varname"><a href="class.xsltprocessor.php#xsltprocessor.props.maxtemplatevars">$<var class="varname">maxTemplateVars</var></a></var>;</div>


    <div class="classsynopsisinfo classsynopsisinfo_comment">/* Metodi */</div>
    <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.getparameter.php" class="methodname">getParameter</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$namespace</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.getsecurityprefs.php" class="methodname">getSecurityPrefs</a></span>(): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.hasexsltsupport.php" class="methodname">hasExsltSupport</a></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.importstylesheet.php" class="methodname">importStylesheet</a></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$stylesheet</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.registerphpfunctionns.php" class="methodname">registerPHPFunctionNS</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$namespaceURI</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.callable.php" class="type callable">callable</a></span> <code class="parameter">$callable</code></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.registerphpfunctions.php" class="methodname">registerPHPFunctions</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span></span> <code class="parameter">$functions</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.void.php" class="type void">void</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.removeparameter.php" class="methodname">removeParameter</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$namespace</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.setparameter.php" class="methodname">setParameter</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$namespace</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$name</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$value</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.setparameter.php" class="methodname">setParameter</a></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$namespace</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$options</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.setprofiling.php" class="methodname">setProfiling</a></span>(<span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$filename</code></span>): <span class="type"><a href="language.types.singleton.php" class="type true">true</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.setsecurityprefs.php" class="methodname">setSecurityPrefs</a></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$preferences</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.transformtodoc.php" class="methodname">transformToDoc</a></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$document</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$returnClass</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><span class="type"><a href="language.types.object.php" class="type object">object</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.transformtouri.php" class="methodname">transformToUri</a></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$document</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$uri</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>
<div class="methodsynopsis dc-description"><span class="modifier">public</span> <span class="methodname"><a href="xsltprocessor.transformtoxml.php" class="methodname">transformToXml</a></span>(<span class="methodparam"><span class="type"><a href="language.types.object.php" class="type object">object</a></span> <code class="parameter">$document</code></span>): <span class="type"><span class="type"><a href="language.types.string.php" class="type string">string</a></span>|<span class="type"><a href="language.types.null.php" class="type null">null</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

   }</div>

 
  </div>

  <div class="section" id="xsltprocessor.props">
   <h2 class="title">Proprietà</h2>
   <dl>
    
     <dt id="xsltprocessor.props.doxinclude"><var class="varname">doXInclude</var></dt>
     <dd>
      <span class="simpara">
       Whether to perform xIncludes.
      </span>
     </dd>
    
    
     <dt id="xsltprocessor.props.clonedocument"><var class="varname">cloneDocument</var></dt>
     <dd>
      <span class="simpara">
       Whether to perform the transformation on a clone of the document.
      </span>
     </dd>
    
    
     <dt id="xsltprocessor.props.maxtemplatedepth"><var class="varname">maxTemplateDepth</var></dt>
     <dd>
      <span class="simpara">
       The maximum template recursion depth.
      </span>
     </dd>
    
    
     <dt id="xsltprocessor.props.maxtemplatevars"><var class="varname">maxTemplateVars</var></dt>
     <dd>
      <span class="simpara">
       The maximum number of variables in the template.
      </span>
     </dd>
    
   </dl>
  </div>

  <div class="section">
   <h2 class="title">Log delle modifiche</h2>
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Versione</th>
       <th>Descrizione</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>8.4.0</td>
       <td>
        The properties <var class="varname">doXInclude</var>
        and <var class="varname">cloneDocument</var>
        are now explicitly defined on the class.
       </td>
      </tr>

      <tr>
       <td>8.4.0</td>
       <td>
        Added properties <var class="varname">maxTemplateDepth</var>
        and <var class="varname">maxTemplateVars</var>.
       </td>
      </tr>

     </tbody>
    
   </table>

  </div>
 
 </div>
 
 






































































 
<h2>Indice dei contenuti</h2><ul class="chunklist chunklist_reference"><li><a href="xsltprocessor.construct.php">XSLTProcessor::__construct</a> — Creates a new XSLTProcessor object</li><li><a href="xsltprocessor.getparameter.php">XSLTProcessor::getParameter</a> — Get value of a parameter</li><li><a href="xsltprocessor.getsecurityprefs.php">XSLTProcessor::getSecurityPrefs</a> — Get security preferences</li><li><a href="xsltprocessor.hasexsltsupport.php">XSLTProcessor::hasExsltSupport</a> — Determine if PHP has EXSLT support</li><li><a href="xsltprocessor.importstylesheet.php">XSLTProcessor::importStylesheet</a> — Import stylesheet</li><li><a href="xsltprocessor.registerphpfunctionns.php">XSLTProcessor::registerPHPFunctionNS</a> — Register a PHP function as namespaced XSLT function</li><li><a href="xsltprocessor.registerphpfunctions.php">XSLTProcessor::registerPHPFunctions</a> — Enables the ability to use PHP functions as XSLT functions</li><li><a href="xsltprocessor.removeparameter.php">XSLTProcessor::removeParameter</a> — Remove parameter</li><li><a href="xsltprocessor.setparameter.php">XSLTProcessor::setParameter</a> — Set value for a parameter</li><li><a href="xsltprocessor.setprofiling.php">XSLTProcessor::setProfiling</a> — Sets profiling output file</li><li><a href="xsltprocessor.setsecurityprefs.php">XSLTProcessor::setSecurityPrefs</a> — Set security preferences</li><li><a href="xsltprocessor.transformtodoc.php">XSLTProcessor::transformToDoc</a> — Transform to a document</li><li><a href="xsltprocessor.transformtouri.php">XSLTProcessor::transformToUri</a> — Transform to URI</li><li><a href="xsltprocessor.transformtoxml.php">XSLTProcessor::transformToXml</a> — Transform to XML</li></ul>
</div>
<?php manual_footer($setup); ?>