public function __construct($xslt) { $xsl = new \XSLTProcessor(); $xsldoc = new \DOMDocument(); $xsldoc->loadXML($xslt); $xsl->importStyleSheet($xsldoc); $this->xsl = $xsl; }