You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by nd...@apache.org on 2014/02/01 23:53:44 UTC
svn commit: r1563504 - in /httpd/httpd/branches/2.0.x/docs/manual/style/xsl:
common.xsl nroff.xsl synopsis.xsl
Author: nd
Date: Sat Feb 1 22:53:44 2014
New Revision: 1563504
URL: http://svn.apache.org/r1563504
Log:
style updates from trunk
Modified:
httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl
httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl
httpd/httpd/branches/2.0.x/docs/manual/style/xsl/synopsis.xsl
Modified: httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl?rev=1563504&r1=1563503&r2=1563504&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/style/xsl/common.xsl Sat Feb 1 22:53:44 2014
@@ -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'"><</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'"><</xsl:if>
<xsl:value-of select="."/>
<xsl:if test="@type='section'">></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 -->
Modified: httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl?rev=1563504&r1=1563503&r2=1563504&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/style/xsl/nroff.xsl Sat Feb 1 22:53:44 2014
@@ -373,7 +373,7 @@ FATAL: only tables with two (2) columns
<!-- ==================================================================== -->
<!-- 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>
Modified: httpd/httpd/branches/2.0.x/docs/manual/style/xsl/synopsis.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/branches/2.0.x/docs/manual/style/xsl/synopsis.xsl?rev=1563504&r1=1563503&r2=1563504&view=diff
==============================================================================
--- httpd/httpd/branches/2.0.x/docs/manual/style/xsl/synopsis.xsl (original)
+++ httpd/httpd/branches/2.0.x/docs/manual/style/xsl/synopsis.xsl Sat Feb 1 22:53:44 2014
@@ -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>