XSLTProcessor::transformToUri

(PHP 5, PHP 7) Transform to URI int XSLTProcessor::transformToURI ( DOMDocument $doc, string $uri ) Transforms the source node to an URI applying the stylesheet given by the XSLTProcessor::importStylesheet() method. Parameters: doc The document to transform. uri The target URI for the transformation. Returns: R

XSLTProcessor::transformToDoc

(PHP 5, PHP 7) Transform to a DOMDocument DOMDocument XSLTProcessor::transformToDoc ( DOMNode $doc ) Transforms the source node to a DOMDocument applying the stylesheet given by the XSLTProcessor::importStylesheet() method. Parameters: doc The node to be transformed. Returns: The resulting DOMDocument or FALSE on error.

XsltProcessor::setSecurityPrefs

(PHP >= 5.4.0) Set security preferences public int XsltProcessor::setSecurityPrefs ( int $securityPrefs ) Sets the security preferences. Parameters: securityPrefs The new security preferences. The following constants can be ORed: XSL_SECPREF_READ_FILE, XSL_SECPREF_WRITE_FILE, XSL_SECPREF_CREATE_DIRECTORY, XSL_SECPREF_READ_NETWORK, XSL_SECPREF_WRITE_NETWORK. Alternative

XSLTProcessor::setProfiling

(PHP >= 5.3.0) Sets profiling output file bool XSLTProcessor::setProfiling ( string $filename ) Sets the file to output profiling information when processing a stylesheet. Parameters: filename Path to the file to dump profiling information. Returns: Returns TRUE on success or FALSE on failure.

XSLTProcessor::setParameter

(PHP 5, PHP 7) Set value for a parameter bool XSLTProcessor::setParameter ( string $namespace, string $name, string $value ) bool XSLTProcessor::setParameter ( string $namespace , array $options ) Sets the value of one or more parameters to be used in subsequent transformations with XSLTProcessor. If the parameter doesn't exist in the stylesheet it will be ignored. Parameters: namesp

XSLTProcessor::removeParameter

(PHP 5, PHP 7) Remove parameter bool XSLTProcessor::removeParameter ( string $namespaceURI, string $localName ) Removes a parameter, if set. This will make the processor use the default value for the parameter as specified in the stylesheet. Parameters: namespaceURI The namespace URI of the XSLT parameter. localName The local name of th

XSLTProcessor::registerPHPFunctions

(PHP 5 >= 5.0.4, PHP 7) Enables the ability to use PHP functions as XSLT functions void XSLTProcessor::registerPHPFunctions ([ mixed $restrict ] ) This method enables the ability to use PHP functions as XSLT functions within XSL stylesheets. Parameters: restrict Use this parameter to only allow certain functions to be called from XSLT. This parameter can be either a

XSLTProcessor::importStylesheet

(PHP 5, PHP 7) Import stylesheet public bool XSLTProcessor::importStylesheet ( object $stylesheet ) This method imports the stylesheet into the XSLTProcessor for transformations. Parameters: stylesheet The imported style sheet as a DOMDocument or SimpleXMLElement object. Returns: Returns TRUE on success or FALSE on failure.

XSLTProcessor::hasExsltSupport

(PHP 5 >= 5.0.4, PHP 7) Determine if PHP has EXSLT support bool XSLTProcessor::hasExsltSupport ( void ) This method determines if PHP was built with the » EXSLT library. Returns: Returns TRUE on success or FALSE on failure. Examples: Testing EXSLT support <?php $proc = new XSLTProcessor; if (!$proc->hasExsltSupp

XsltProcessor::getSecurityPrefs

(PHP >= 5.4.0) Get security preferences public int XsltProcessor::getSecurityPrefs ( void ) Gets the security preferences. Returns: A bitmask consisting of XSL_SECPREF_READ_FILE, XSL_SECPREF_WRITE_FILE, XSL_SECPREF_CREATE_DIRECTORY, XSL_SECPREF_READ_NETWORK, XSL_SECPREF_WRITE_NETWORK.