public static function stylesToProc($files = array())
    {
        if (!class_exists('XsltProcessor')) {
            throw new BadMethodCallException('XSL extension is missing. Can not create XsltProcessor.');
        }

        $dom = self::stylesToDOM($files);
        $proc = new XsltProcessor();
        $proc->importStylesheet($dom);

        return $proc;
    }
public static function stylesToProc($files = array())
    {
        if (!class_exists('XsltProcessor')) {
            throw new BadMethodCallException('XSL extension is missing. Can not create XsltProcessor.');
        }

        $dom = self::stylesToDOM($files);
        $proc = new XsltProcessor();
        $proc->importStylesheet($dom);

        return $proc;
    }
public static function stylesToProc ( $ files = array ( ) ) { if ( ! class_exists ( 'XsltProcessor' ) ) { throw new BadMethodCallException ( 'XSL extension is missing. Can not create XsltProcessor.' ) ; } $ dom = self :: stylesToDOM ( $ files ) ; $ proc = new XsltProcessor ( ) ; $ proc -> importStylesheet ( $ dom ) ; return $ proc ; }
Converts XSL files to XsltProcessor instance.

@param mixed $files Either single file path as string or array of files

@return XsltProcessor
Converts XSL files to XsltProcessor instance .