]> granicus.if.org Git - apache/commitdiff
restore directive output without module attribute
authorAndré Malo <nd@apache.org>
Tue, 28 Jan 2014 22:55:37 +0000 (22:55 +0000)
committerAndré Malo <nd@apache.org>
Tue, 28 Jan 2014 22:55:37 +0000 (22:55 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1562298 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/style/latex/common.xsl

index 228204176fdfc8bd49349535a0c762145bf69e4b..a3a04a0bde269f5e1cae25a17614d6ca380622e2 100644 (file)
@@ -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>