public function applyStylesheet(\DOMDocument $stylesheet): self
    {
        $this->stylesheets[] = $stylesheet;
        $this->xsltProcessor->importStylesheet($stylesheet);
        return $this;
    }