XSLTProcessor::importStylesheet
(PHP 5, PHP 7, PHP 8)
XSLTProcessor::importStylesheet — Import stylesheet
Description
This method imports the stylesheet into the XSLTProcessor for transformations.
Parameters
stylesheetThe imported style sheet as a Dom\Document, DOMDocument or SimpleXMLElement object.
Errors/Exceptions
Throws a TypeError if stylesheet is not an XML object.
Changelog
| Version | Description |
|---|---|
| 8.4.0 | Added support for Dom\Document. |
| 8.4.0 | Now throws a TypeError instead of a ValueError if stylesheet is not an XML object. |
↑ and ↓ to navigate • Enter to select • Esc to close • / to open