Commit 5cbdd9b8 authored by Daniel Gruno's avatar Daniel Gruno
Browse files

XSL changes needed to add comments to 2.2 branch

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.2.x@1361042 13f79535-47bb-0310-9956-ffa450edef68
parent 59be3775
Loading
Loading
Loading
Loading
+34 −6
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@
<!DOCTYPE xsl:stylesheet [
    <!ENTITY nbsp SYSTEM "util/nbsp.xml">
    <!ENTITY lf SYSTEM "util/lf.xml">
    <!ENTITY % HTTPD-VERSION SYSTEM "../version.ent">
    %HTTPD-VERSION;
]>
<xsl:stylesheet version="1.0"
              xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
@@ -287,7 +289,33 @@
<xsl:call-template name="langavail">
    <xsl:with-param name="position" select="'bottom'" />
</xsl:call-template>

<xsl:choose>
<xsl:when test="not($is-chm or $is-zip or $metafile/basename = 'index')">
<div class="top"><a href="#page-header"><img alt="top" src="{$path}/images/up.gif" /></a></div>
<div class="section">
<h2><a name="comments_section" id="comments_section"><xsl:value-of select="$message[@id='comments']" /></a></h2>
<div class="warning"><strong>Notice:</strong><br/>This is not a Q&amp;A section. Comments placed here should be pointed towards suggestions on improving the documentation or server, and may be removed again by our moderators if they are either implemented or considered invalid/off-topic. Questions on how to manage the Apache HTTP Server should be directed at either our IRC channel, #httpd, on Freenode, or sent to our <a href="http://httpd.apache.org/lists.html">mailing lists</a>.</div>&lf;
<script type="text/javascript">
<xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--
var comments_shortname = 'httpd';
var comments_identifier = 'http://httpd.apache.org/docs/]]></xsl:text>&httpd.docs;<xsl:value-of select="concat($metafile/path, $metafile/basename, '.html')" disable-output-escaping="yes" /><xsl:text disable-output-escaping="yes"><![CDATA[';
(function(w, d) {
    if (w.location.hostname.toLowerCase() == "httpd.apache.org") {
        d.write('<div id="comments_thread"><\/div>');
        var s = d.createElement('script');
        s.type = 'text/javascript';
        s.async = true;
        s.src = 'https://comments.apache.org/show_comments.lua?site=' + comments_shortname + '&page=' + comments_identifier;
        (d.getElementsByTagName('head')[0] || d.getElementsByTagName('body')[0]).appendChild(s);
    }
    else { 
        d.write('<div id="comments_thread">Comments are disabled for this page at the moment.<\/div>');
    }
})(window, document);
//--><!]]]]>></xsl:text></script>
</div>
</xsl:when>
</xsl:choose>
<div id="footer">&lf;
    <p class="apache">
        <xsl:text>Copyright 2012 The Apache Software Foundation.</xsl:text><br />
@@ -314,11 +342,11 @@
</div> <!-- /footer -->

<script type="text/javascript">
<xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--]]></xsl:text><![CDATA[
if (typeof(prettyPrint) !== undefined) {
<xsl:text disable-output-escaping="yes"><![CDATA[<!--//--><![CDATA[//><!--
if (typeof(prettyPrint) !== 'undefined') {
    prettyPrint();
}
]]><xsl:text disable-output-escaping="yes"><![CDATA[//--><!]]]]>></xsl:text></script>
//--><!]]]]>></xsl:text></script>
</xsl:template>
<!-- /bottom -->

@@ -537,7 +565,7 @@ if (typeof(prettyPrint) !== undefined) {

    <xsl:text> | </xsl:text>

    <a href="{$path}/faq/{$index-file}">
    <a href="http://wiki.apache.org/httpd/FAQ">
        <xsl:value-of select="$message[@id='faq']" />
    </a>

+7 −0
Original line number Diff line number Diff line
@@ -72,6 +72,13 @@
                        </xsl:for-each>
                        </ul>
                    </xsl:if>
                    <xsl:if test="not($is-chm or $is-zip or $metafile/basename = 'index')">
                    <ul class="seealso">
                        <li><a href="#comments_section"><xsl:value-of
                                select="$message[@id='comments']" /></a>
                        </li>
                    </ul>
                    </xsl:if>
                </div>&lf; <!-- /#quickview -->
            </xsl:if>

+18 −1
Original line number Diff line number Diff line
@@ -91,7 +91,17 @@
                    <td>
                        <xsl:variable name="status" select="translate(
                            status, $uppercase, $lowercase)"/>
                        <xsl:choose>
                        <xsl:when test="status = 'External' and status/@href">
                            <a href="{status/@href}">
                                <xsl:value-of select="$message[@id=$status]"/>
                            </a>
                        </xsl:when>
                        <xsl:otherwise>
                            <xsl:value-of
                                select="$message[@id=$status]"/>
                        </xsl:otherwise>
                        </xsl:choose>
                    </td>
                </tr>

@@ -246,6 +256,13 @@
                        </xsl:for-each>
                        </ul>
                    </xsl:if>
                    <xsl:if test="not($is-chm or $is-zip or $metafile/basename = 'index')">
                    <ul class="seealso">
                        <li><a href="#comments_section"><xsl:value-of
                                select="$message[@id='comments']" /></a>
                        </li>
                    </ul>
                    </xsl:if>
                </div> <!-- /#quickview -->
            </xsl:if>&lf; <!-- have sidebar -->