public function applyStylesheetFromFile(string $stylesheetFile): self
    {
        $stylesheet = new \DOMDocument();
        if (false === @$stylesheet->load($stylesheetFile)) {
            throw new XslProcessorException('Can not read stylesheet file ' . $stylesheetFile);
        }

        return $this->applyStylesheet($stylesheet);
    }
public function applyStylesheetFromFile(string $stylesheetFile): self
    {
        $stylesheet = new \DOMDocument();
        if (false === @$stylesheet->load($stylesheetFile)) {
            throw new XslProcessorException('Can not read stylesheet file ' . $stylesheetFile);
        }

        return $this->applyStylesheet($stylesheet);
    }
public function applyStylesheetFromFile ( string $ stylesheetFile ) : self { $ stylesheet = new \ DOMDocument ( ) ; if ( false === @ $ stylesheet -> load ( $ stylesheetFile ) ) { throw new XslProcessorException ( 'Can not read stylesheet file ' . $ stylesheetFile ) ; } return $ this -> applyStylesheet ( $ stylesheet ) ; }
add a stylesheet to use from a file

@param   string  $stylesheetFile
@return  \stubbles\xml\xsl\XslProcessor
@throws  \stubbles\xml\xsl\XslProcessorException
add a stylesheet to use from a file