forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Brondsema <d...@brondsema.net>
Subject Re: Bug in including credits section?
Date Thu, 30 Sep 2004 15:20:44 GMT
Quoting Lorenz Froihofer <Lorenz.F@gmx.at>:

> The skins use currently the test
> 
> <xsl:if test="$filename = 'index.html' and //skinconfig/credits">
>    ... render credits ...
> </xsl:if>
> 
> May be this does not produce what is intended. I often got confused 
> about why some of the rendered pages contain the credits and some not. 
> The current solution renders the credits at every file called 
> "index.html", ignoring the path to the file.
> 
> Examples:
> 1. index.html
> 2. some/path/index.html
> 3. some/other/path/index.html
> 
> have the credits section included.
> 
> Was it intended to render the credits section for the "/index.html" 
> (example 1) only? Then the following test would be better:
> 
> <xsl:if test="$path = 'index.html' and //skinconfig/credits">
>    ... render credits ...
> </xsl:if>
> 
> Kind regards,
>    Lorenz.
> 

I'm pretty sure that it is working as intended.  But I don't recall why we do it
that way.

-- 
Dave Brondsema : dave@brondsema.net 
http://www.brondsema.net : personal 
http://www.splike.com : programming 
http://csx.calvin.edu : student org 

Mime
View raw message