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/28 23:55:38 UTC

svn commit: r1562298 - /httpd/httpd/trunk/docs/manual/style/latex/common.xsl

Author: nd
Date: Tue Jan 28 22:55:37 2014
New Revision: 1562298

URL: http://svn.apache.org/r1562298
Log:
restore directive output without module attribute

Modified:
    httpd/httpd/trunk/docs/manual/style/latex/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=1562298&r1=1562297&r2=1562298&view=diff
==============================================================================
--- httpd/httpd/trunk/docs/manual/style/latex/common.xsl (original)
+++ httpd/httpd/trunk/docs/manual/style/latex/common.xsl Tue Jan 28 22:55:37 2014
@@ -143,7 +143,8 @@ 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:if test="@module">
+<xsl:choose>
+<xsl:when test="@module">
   <xsl:text>\hyperlink{/mod/</xsl:text>
   <xsl:value-of select="normalize-space(@module)"/>
   <xsl:text>:</xsl:text>
@@ -160,7 +161,11 @@ select="$metafile/basename"/>
   <xsl:text>}{</xsl:text>
   <xsl:apply-templates/>
   <xsl:text>}</xsl:text>
-</xsl:if>
+</xsl:when>
+<xsl:otherwise>
+  <xsl:apply-templates/>
+</xsl:otherwise>
+</xsl:choose>
 <xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
 <xsl:text>}</xsl:text>
 </xsl:template>
@@ -168,7 +173,8 @@ select="$metafile/basename"/>
 <xsl:template match="directive" mode="tabular">
 <xsl:text>\textsc{</xsl:text>
 <xsl:if test="@type='section'"><xsl:text>\textless{}</xsl:text></xsl:if>
-<xsl:if test="@module">
+<xsl:choose>
+<xsl:when test="@module">
   <xsl:text>\hyperlink{/mod/</xsl:text>
   <xsl:value-of select="normalize-space(@module)"/>
   <xsl:text>:</xsl:text>
@@ -185,7 +191,11 @@ select="$metafile/basename"/>
   <xsl:text>}{</xsl:text>
   <xsl:apply-templates mode="tabular"/>
   <xsl:text>}</xsl:text>
-</xsl:if>
+</xsl:when>
+<xsl:otherwise>
+  <xsl:apply-templates mode="tabular"/>
+</xsl:otherwise>
+</xsl:choose>
 <xsl:if test="@type='section'"><xsl:text>\textgreater{}</xsl:text></xsl:if>
 <xsl:text>}</xsl:text>
 </xsl:template>