PHPKonf 2020 Online

The XSLTProcessor class

(PHP 5, PHP 7)

Introduction

Class synopsis

XSLTProcessor {
/* Methods */
public getParameter ( string $namespace , string $name ) : string|false
public getSecurityPrefs ( ) : int
public hasExsltSupport ( ) : bool
public importStylesheet ( object $stylesheet ) : bool
public registerPHPFunctions ([ array|string|null $functions = NULL ] ) : void
public removeParameter ( string $namespace , string $name ) : bool
public setParameter ( string $namespace , string $name , string $value ) : bool
public setProfiling ( string|null $filename ) : bool
public setSecurityPrefs ( int $preferences ) : int
public transformToDoc ( object $document [, string|null $returnClass = NULL ] ) : DOMDocument|false
transformToURI ( DOMDocument $doc , string $uri ) : int
public transformToXml ( object $document ) : string|false|null
}

Table of Contents

add a note add a note

User Contributed Notes 3 notes

up
1
flavius
5 years ago
It requires PHP5 XSL extension. On linux:

sudo apt-get install php5-xsl
up
0
joandres52725lm at gmail dot com
7 months ago
[Update] PHP version /.3.15 and Windows Uncomment `extension=xsl` to activate it in your php.ini. Then restart your webserver to refresh php.
up
0
tschallacka
4 years ago
uncomment extension=php_xsl.dll on windows to activate it in your php.ini. Then restart your webserver to refresh php.
To Top