FluidXml\FluidXml::initStylesheet PHP Méthode

initStylesheet() private méthode

private initStylesheet ( &$options )
    private function initStylesheet(&$options)
    {
        if (!empty($options['stylesheet'])) {
            $attrs = 'type="text/xsl" ' . "encoding=\"{$options['encoding']}\" " . 'indent="yes" ' . "href=\"{$options['stylesheet']}\"";
            $stylesheet = new \DOMProcessingInstruction('xml-stylesheet', $attrs);
            $this->addChild($stylesheet);
            // Algorithm 2:
            // Used in case the order of the stylesheet and root creation is reversed.
            // $this->document->dom->insertBefore($stylesheet, $this->document->dom->documentElement);
        }
        return $this;
    }