1 |
On Tue, 25 May 2010 19:28:11 +0200 |
2 |
Sebastian Pipping <sping@g.o> wrote: |
3 |
> i was wondering how the setup on gentoo.org is weaving a value of debug |
4 |
> in. can anybody enlighten me? |
5 |
|
6 |
It doesn't. That German site is screwed up in a couple of ways: |
7 |
|
8 |
1. Its XSL is never up to date. This is the primary cause of issues. |
9 |
2. It has extra XML files it should not have, such as debug.xml. |
10 |
|
11 |
Read through gentoo.org's guide.xsl, around line 59: debug is not set unless debug.xml exists in the root folder, which should never happen on gentoo.org. |
12 |
|
13 |
<!-- Debug mode, when /debug.xml exists, should never be available on www.g.o --> |
14 |
<xsl:variable name="debug"> |
15 |
<xsl:if test="document('/debug.xml')/debug/@on='1'">1</xsl:if> |
16 |
</xsl:variable> |