summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Malo <nd@apache.org>2014-02-01 22:53:44 +0000
committerAndré Malo <nd@apache.org>2014-02-01 22:53:44 +0000
commitb3c15caf2347720dcf1a82efb2edc0577128a28c (patch)
tree14ae1ac4fb53b49d9a02e60d24e151ef4de14352
parent3a94f918da4e62eb2323c98e23a0de3533be7882 (diff)
downloadhttpd-b3c15caf2347720dcf1a82efb2edc0577128a28c.tar.gz
style updates from trunk
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x@1563504 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--docs/manual/style/xsl/common.xsl37
-rw-r--r--docs/manual/style/xsl/nroff.xsl2
-rw-r--r--docs/manual/style/xsl/synopsis.xsl12
3 files changed, 38 insertions, 13 deletions
diff --git a/docs/manual/style/xsl/common.xsl b/docs/manual/style/xsl/common.xsl
index 39735d1bcc..5fbe16db16 100644
--- a/docs/manual/style/xsl/common.xsl
+++ b/docs/manual/style/xsl/common.xsl
@@ -169,8 +169,7 @@
<link type="text/css" media="print"
rel="stylesheet"
href="{$path}/style/css/manual-print.css"/>
-
- <!-- chm files do not need a favicon or a canonical link-->
+ <!-- chm files do not need a favicon -->
<xsl:if test="not($is-chm or $is-zip)">&lf;
<link rel="shortcut icon" href="{$path}/images/favicon.ico" />
<xsl:if test="$is-retired">
@@ -364,6 +363,7 @@
</a>
</xsl:template>
+
<!-- ==================================================================== -->
<!-- out of date -->
<!-- ==================================================================== -->
@@ -384,10 +384,9 @@
<xsl:call-template name="langavail">
<xsl:with-param name="position" select="'bottom'" />
</xsl:call-template>
-
<div id="footer">&lf;
<p class="apache">
- <xsl:text>Copyright 2013 The Apache Software Foundation.</xsl:text><br />
+ <xsl:text>Copyright 2014 The Apache Software Foundation.</xsl:text><br />
<xsl:if test="normalize-space($message[@id='before-license'])">
<xsl:value-of select="$message[@id='before-license']"/>
<xsl:text> </xsl:text>
@@ -406,7 +405,6 @@
<xsl:text>.</xsl:text>
</p>&lf;
-
<xsl:call-template name="super-menu"/>
</div> <!-- /footer -->
@@ -763,11 +761,21 @@
<code class="directive">
<xsl:choose>
<xsl:when test="@module">
- <xsl:variable name="lowerdirective"
- select="translate(., $uppercase, $lowercase)" />
+ <xsl:variable name="lowerdirective">
+ <xsl:choose>
+ <xsl:when test="@name">
+ <xsl:value-of select="normalize-space(translate(@name,
+ $uppercase, $lowercase))" />
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="normalize-space(translate(.,
+ $uppercase, $lowercase))" />
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:variable>
<xsl:choose>
- <xsl:when test="$in-modulesynopsis and @module = /modulesynopsis/name">
+ <xsl:when test="$in-modulesynopsis and normalize-space(@module) = /modulesynopsis/name">
<a href="#{$lowerdirective}">
<xsl:if test="@type='section'">&lt;</xsl:if>
<xsl:value-of select="."/>
@@ -775,7 +783,7 @@
</a>
</xsl:when>
<xsl:otherwise>
- <a href="{$path}/mod/{@module}.html#{$lowerdirective}">
+ <a href="{$path}/mod/{normalize-space(@module)}.html#{$lowerdirective}">
<xsl:if test="@type='section'">&lt;</xsl:if>
<xsl:value-of select="."/>
<xsl:if test="@type='section'">&gt;</xsl:if>
@@ -801,9 +809,16 @@
<!-- ==================================================================== -->
<xsl:template match="module" name="module">
<code class="module">
- <a href="{$path}/mod/{.}.html">
+ <xsl:choose>
+ <xsl:when test="@outdated = 'true'">
<xsl:value-of select="."/>
- </a>
+ </xsl:when>
+ <xsl:otherwise>
+ <a href="{$path}/mod/{normalize-space(.)}.html">
+ <xsl:value-of select="."/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
</code>
</xsl:template>
<!-- /module -->
diff --git a/docs/manual/style/xsl/nroff.xsl b/docs/manual/style/xsl/nroff.xsl
index 5aadc418b2..46d574f04d 100644
--- a/docs/manual/style/xsl/nroff.xsl
+++ b/docs/manual/style/xsl/nroff.xsl
@@ -373,7 +373,7 @@ FATAL: only tables with two (2) columns are supported.
<!-- ==================================================================== -->
<!-- pass through content -->
<!-- ==================================================================== -->
-<xsl:template match="a|code|module|table|program">
+<xsl:template match="a|code|module|table|program|glossary">
<xsl:apply-templates />
</xsl:template>
diff --git a/docs/manual/style/xsl/synopsis.xsl b/docs/manual/style/xsl/synopsis.xsl
index 0733a59a3d..495d5e596b 100644
--- a/docs/manual/style/xsl/synopsis.xsl
+++ b/docs/manual/style/xsl/synopsis.xsl
@@ -93,7 +93,17 @@
<td>
<xsl:variable name="status" select="translate(
status, $uppercase, $lowercase)"/>
- <xsl:value-of select="$message[@id=$status]"/>
+ <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>