Skip to content

QuioteXsltProcessor

Extended XSLTProcessor class that throws exceptions on errors.

class QuioteXsltProcessor extends XSLTProcessor

ExtendsXSLTProcessor
Since1.0.0
SourceUtil/QuioteXsltProcessor.php
MethodDescription
importStylesheet(DOMDocument $stylesheet): boolImport a stylesheet.
transformToDoc(mixed $doc, mixed $returnClass = null): objectTransform a document with a stylesheet.

public function importStylesheet(DOMDocument $stylesheet): bool

Import a stylesheet.

The stylesheet to import.

ParameterTypeDescription
$stylesheetDOMDocumentThe stylesheet to import.

Returns bool

public function transformToDoc(mixed $doc, mixed $returnClass = null): object

Transform a document with a stylesheet.

The document to transform; must be a DOMDocument or SimpleXMLElement.

ParameterTypeDescription
$docmixedThe document to transform; must be a DOMDocument or SimpleXMLElement.
$returnClassmixed

Returns object — The resulting DOMDocument (or subclass of $doc’s owner document).

These come from an ancestor and are documented where they are declared.

MethodDeclared inDescription
getParameter()XSLTProcessor
getSecurityPrefs()XSLTProcessor
hasExsltSupport()XSLTProcessor
registerPHPFunctionNS()XSLTProcessor
registerPHPFunctions()XSLTProcessor
removeParameter()XSLTProcessor
setParameter()XSLTProcessor
setProfiling()XSLTProcessor
setSecurityPrefs()XSLTProcessor
transformToUri()XSLTProcessor
transformToXml()XSLTProcessor