forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lorenz Froihofer <Loren...@gmx.at>
Subject Bug in including credits section?
Date Thu, 30 Sep 2004 15:15:15 GMT
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.

Mime
View raw message