The XSLTProcessor class

(PHP 5, PHP 7, PHP 8)

简介

类摘要

class XSLTProcessor {
/* 属性 */
/* 方法 */
public getParameter(string $namespace, string $name): string|false
public importStylesheet(object $stylesheet): bool
public removeParameter(string $namespace, string $name): bool
public setParameter(string $namespace, string $name, string $value): bool
public setParameter(string $namespace, array $options): bool
public setProfiling(?string $filename): true
public setSecurityPrefs(int $preferences): int
public transformToDoc(object $document, ?string $returnClass = null): object|false
public transformToUri(object $document, string $uri): int
}

属性

doXInclude
Whether to perform xIncludes.
cloneDocument
Whether to perform the transformation on a clone of the document.
maxTemplateDepth
The maximum template recursion depth.
maxTemplateVars
The maximum number of variables in the template.

更新日志

版本 说明
8.4.0 The properties doXInclude and cloneDocument are now explicitly defined on the class.
8.4.0 Added properties maxTemplateDepth and maxTemplateVars.

目录

添加备注

用户贡献的备注 3 notes

up
4
tschallacka
8 years ago
uncomment extension=php_xsl.dll on windows to activate it in your php.ini. Then restart your webserver to refresh php.
up
2
joandres52725lm at gmail dot com
4 years 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
flavius
9 years ago
It requires PHP5 XSL extension. On linux:

sudo apt-get install php5-xsl
To Top