The XSLTProcessor class

Introduction

Class synopsis

XSLTProcessor
/* Properties */
public bool $doXInclude = false;
public bool $cloneDocument = false;
public int $maxTemplateDepth;
public int $maxTemplateVars;
/* Methods */
public stringfalse getParameter(string $namespace, string $name)
public int getSecurityPrefs()
public bool hasExsltSupport()
public bool importStylesheet(object $stylesheet)
public void registerPHPFunctions(arraystringnull $functions = null)
public bool removeParameter(string $namespace, string $name)
public bool setParameter(string $namespace, string $name, string $value)
public bool setParameter(string $namespace, array $options)
public true setProfiling(stringnull $filename)
public int setSecurityPrefs(int $preferences)
public objectfalse transformToDoc(object $document, stringnull $returnClass = null)
public int transformToUri(object $document, string $uri)
public stringnullfalse transformToXml(object $document)

Properties

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.

Changelog

Version Description
8.4.0 The properties doXInclude and cloneDocument are now explicitly defined on the class.
8.4.0 Added properties maxTemplateDepth and maxTemplateVars.
Table of Contents