XSLTProcessor
class XSLTProcessor (View source)
Methods
bool
importStylesheet(object $stylesheet)
Import stylesheet
object|false
transformToDoc(object $document, string|null $returnClass = null)
Transform to a DOMDocument
int
string|false|null
bool
setParameter(string $namespace, string $name, string $value = null)
Set value for a parameter
string|false
getParameter(string $namespace, string $name)
Get value of a parameter
bool
removeParameter(string $namespace, string $name)
Remove parameter
bool
hasExsltSupport()
Determine if PHP has EXSLT support
void
registerPHPFunctions(array|string|null $functions = null)
Enables the ability to use PHP functions as XSLT functions
bool
setProfiling(string $filename)
Sets profiling output file
int
setSecurityPrefs(int $preferences)
Set security preferences
int
getSecurityPrefs()
Get security preferences
Details
bool
importStylesheet(object $stylesheet)
Import stylesheet
object|false
transformToDoc(object $document, string|null $returnClass = null)
Transform to a DOMDocument
int
transformToUri(DOMDocument|SimpleXMLElement $document, string $uri)
Transform to URI
string|false|null
transformToXml(DOMDocument|SimpleXMLElement $document)
Transform to XML
bool
setParameter(string $namespace, string $name, string $value = null)
Set value for a parameter
string|false
getParameter(string $namespace, string $name)
Get value of a parameter
bool
removeParameter(string $namespace, string $name)
Remove parameter
bool
hasExsltSupport()
Since: 5.0.4
Determine if PHP has EXSLT support
void
registerPHPFunctions(array|string|null $functions = null)
Since: 5.0.4
Enables the ability to use PHP functions as XSLT functions
bool
setProfiling(string $filename)
Sets profiling output file
int
setSecurityPrefs(int $preferences)
Since: 5.4
Set security preferences
int
getSecurityPrefs()
Since: 5.4
Get security preferences