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/01/26 23:55:00 UTC
svn commit: r1561567 - in /httpd/httpd/trunk/docs/manual/style:
latex/common.xsl xsl/common.xsl
Author: nd
Date: Sun Jan 26 22:55:00 2014
New Revision: 1561567
URL: http://svn.apache.org/r1561567
Log:
evaluate the new dtd attributes.
Modified:
httpd/httpd/trunk/docs/manual/style/latex/common.xsl
httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
Modified: httpd/httpd/trunk/docs/manual/style/latex/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/latex/common.xsl?rev=1561567&r1=1561566&r2=1561567&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/latex/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/latex/common.xsl Sun Jan 26 22:55:00 2014
@@ -142,29 +142,51 @@ select="$metafile/basename"/>
<!-- ==================================================================== -->
<xsl:template match="directive" name="directive">
<xsl:text>\textsc{</xsl:text>
- <xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
- <xsl:text>\hyperlink{/mod/</xsl:text>
- <xsl:value-of select="@module"/>
- <xsl:text>:</xsl:text>
- <xsl:value-of select="translate(.,$uppercase,$lowercase)"/>
- <xsl:text>}{</xsl:text>
- <xsl:apply-templates/>
- <xsl:text>}</xsl:text>
- <xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
+<xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
+<xsl:if test="@module">
+ <xsl:text>\hyperlink{/mod/</xsl:text>
+ <xsl:value-of select="normalize-space(@module)"/>
+ <xsl:text>:</xsl:text>
+ <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:text>}{</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>}</xsl:text>
+</xsl:if>
+<xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
<xsl:text>}</xsl:text>
</xsl:template>
<xsl:template match="directive" mode="tabular">
<xsl:text>\textsc{</xsl:text>
- <xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
- <xsl:text>\hyperlink{/mod/</xsl:text>
- <xsl:value-of select="@module"/>
- <xsl:text>:</xsl:text>
- <xsl:value-of select="translate(.,$uppercase,$lowercase)"/>
- <xsl:text>}{</xsl:text>
- <xsl:apply-templates mode="tabular"/>
- <xsl:text>}</xsl:text>
- <xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
+<xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
+<xsl:if test="@module">
+ <xsl:text>\hyperlink{/mod/</xsl:text>
+ <xsl:value-of select="normalize-space(@module)"/>
+ <xsl:text>:</xsl:text>
+ <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:text>}{</xsl:text>
+ <xsl:apply-templates mode="tabular"/>
+ <xsl:text>}</xsl:text>
+</xsl:if>
+<xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
<xsl:text>}</xsl:text>
</xsl:template>
@@ -175,21 +197,39 @@ select="$metafile/basename"/>
<!-- Inserts a link to refereed module -->
<!-- ==================================================================== -->
<xsl:template match="module" name="module">
-<xsl:text>\textsc{\hyperlink{/mod/</xsl:text>
- <xsl:value-of select="."/>
- <xsl:text>}{</xsl:text>
+<xsl:choose>
+<xsl:when test="@outdated = 'true'">
+ <xsl:text>\textsc{</xsl:text>
<xsl:apply-templates/>
<xsl:text>}</xsl:text>
-<xsl:text>}</xsl:text>
+</xsl:when>
+<xsl:otherwise>
+ <xsl:text>\textsc{\hyperlink{/mod/</xsl:text>
+ <xsl:value-of select="normalize-space(.)"/>
+ <xsl:text>}{</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>}</xsl:text>
+ <xsl:text>}</xsl:text>
+</xsl:otherwise>
+</xsl:choose>
</xsl:template>
<xsl:template match="module" mode="tabular">
-<xsl:text>\textsc{\hyperlink{/mod/</xsl:text>
- <xsl:value-of select="."/>
- <xsl:text>}{</xsl:text>
+<xsl:choose>
+<xsl:when test="@outdated = 'true'">
+ <xsl:text>\textsc{</xsl:text>
<xsl:apply-templates mode="tabular"/>
<xsl:text>}</xsl:text>
-<xsl:text>}</xsl:text>
+</xsl:when>
+<xsl:otherwise>
+ <xsl:text>\textsc{\hyperlink{/mod/</xsl:text>
+ <xsl:value-of select="normalize-space(.)"/>
+ <xsl:text>}{</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:text>}</xsl:text>
+ <xsl:text>}</xsl:text>
+</xsl:otherwise>
+</xsl:choose>
</xsl:template>
<!-- /module -->
Modified: httpd/httpd/trunk/docs/manual/style/xsl/common.xsl
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/docs/manual/style/xsl/common.xsl?rev=1561567&r1=1561566&r2=1561567&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/xsl/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/xsl/common.xsl Sun Jan 26 22:55:00 2014
@@ -712,8 +712,18 @@ if (typeof(prettyPrint) !== 'undefined')
<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">
@@ -750,9 +760,16 @@ if (typeof(prettyPrint) !== 'undefined')
<!-- ==================================================================== -->
<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/{.}.html">
+ <xsl:value-of select="."/>
+ </a>
+ </xsl:otherwise>
+ </xsl:choose>
</code>
</xsl:template>
<!-- /module -->