Re: gorg on gentoo.org / debug variable in guidexml

Joshua Saddler <[email protected]>
Newsgroups gmane.linux.gentoo.documentation
Message-ID <20100525120117.42ebd953@angelstorm>
On Tue, 25 May 2010 19:28:11 +0200
Sebastian Pipping <[email protected]> wrote:
> i was wondering how the setup on gentoo.org is weaving a value of debug
> in.  can anybody enlighten me?

It doesn't. That German site is screwed up in a couple of ways:

1. Its XSL is never up to date. This is the primary cause of issues.
2. It has extra XML files it should not have, such as debug.xml.

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.

<!-- Debug mode, when /debug.xml exists, should never be available on www.g.o -->
<xsl:variable name="debug">
 <xsl:if test="document('/debug.xml')/debug/@on='1'">1</xsl:if>
</xsl:variable>
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)

iEYEARECAAYFAkv8Hn8ACgkQxPWMzpKk6kPVJwCeK49IXXHKKVgG4E8E7tnEloPz
vSoAnRaKEFPNLjL333XoUpIyWvbcCyvl
=+zfK
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.