public function detectMainTemplate()
    {
        $name = (isset($this->mainxsl) && !empty($this->mainxsl)) ? $this->mainxsl : 'index';

        foreach ($this->getIncludePaths() as $path) {
            if (is_readable($path.DIRECTORY_SEPARATOR.$name.'.xsl')) {
                $this->xsl->includeXSL($path.DIRECTORY_SEPARATOR.$name.'.xsl', true);

                return $path.DIRECTORY_SEPARATOR.$name.'.xsl';
            }
        }
    }
public function detectMainTemplate()
    {
        $name = (isset($this->mainxsl) && !empty($this->mainxsl)) ? $this->mainxsl : 'index';

        foreach ($this->getIncludePaths() as $path) {
            if (is_readable($path.DIRECTORY_SEPARATOR.$name.'.xsl')) {
                $this->xsl->includeXSL($path.DIRECTORY_SEPARATOR.$name.'.xsl', true);

                return $path.DIRECTORY_SEPARATOR.$name.'.xsl';
            }
        }
    }
public function detectMainTemplate ( ) { $ name = ( isset ( $ this -> mainxsl ) && ! empty ( $ this -> mainxsl ) ) ? $ this -> mainxsl : 'index' ; foreach ( $ this -> getIncludePaths ( ) as $ path ) { if ( is_readable ( $ path . DIRECTORY_SEPARATOR . $ name . '.xsl' ) ) { $ this -> xsl -> includeXSL ( $ path . DIRECTORY_SEPARATOR . $ name . '.xsl' , true ) ; return $ path . DIRECTORY_SEPARATOR . $ name . '.xsl' ; } } }
Detects path and file of 'main' XSL file.

'Main' XSL means the root XSL template. If/when found, it is added to list of
XSL files to include.


@return bool
Detects path and file of main XSL file .