summaryrefslogtreecommitdiff
path: root/xhtml-1_1/inline.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'xhtml-1_1/inline.xsl')
-rw-r--r--xhtml-1_1/inline.xsl29
1 files changed, 20 insertions, 9 deletions
diff --git a/xhtml-1_1/inline.xsl b/xhtml-1_1/inline.xsl
index bc53ba4..c13fa44 100644
--- a/xhtml-1_1/inline.xsl
+++ b/xhtml-1_1/inline.xsl
@@ -1,10 +1,7 @@
-<?xml version="1.0" encoding="ASCII"?>
-<!--This file was created automatically by html2xhtml-->
-<!--from the HTML stylesheets.-->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xlink suwl" version="1.0">
+<?xml version="1.0" encoding="ASCII"?><!--This file was created automatically by html2xhtml--><!--from the HTML stylesheets.--><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:suwl="http://nwalsh.com/xslt/ext/com.nwalsh.saxon.UnwrapLinks" xmlns="http://www.w3.org/1999/xhtml" exclude-result-prefixes="xlink suwl" version="1.0">
<!-- ********************************************************************
- $Id: inline.xsl 9297 2012-04-22 03:56:16Z bobstayton $
+ $Id: inline.xsl 9663 2012-11-06 19:09:16Z bobstayton $
********************************************************************
This file is part of the XSL DocBook Stylesheet distribution.
@@ -537,14 +534,14 @@
<xsl:template match="function/parameter" priority="2">
<xsl:call-template name="inline.italicmonoseq"/>
- <xsl:if test="following-sibling::*">
+ <xsl:if test="$function.parens != 0 and following-sibling::*">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match="function/replaceable" priority="2">
<xsl:call-template name="inline.italicmonoseq"/>
- <xsl:if test="following-sibling::*">
+ <xsl:if test="$function.parens != 0 and following-sibling::*">
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
@@ -586,7 +583,21 @@
</xsl:template>
<xsl:template match="keycap">
- <xsl:call-template name="inline.boldseq"/>
+ <xsl:choose>
+ <xsl:when test="@function and normalize-space(.) = ''">
+ <xsl:call-template name="inline.boldseq">
+ <xsl:with-param name="content">
+ <xsl:call-template name="gentext.template">
+ <xsl:with-param name="context" select="'keycap'"/>
+ <xsl:with-param name="name" select="@function"/>
+ </xsl:call-template>
+ </xsl:with-param>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="inline.boldseq"/>
+ </xsl:otherwise>
+ </xsl:choose>
</xsl:template>
<xsl:template match="keycode">
@@ -1476,4 +1487,4 @@
<!-- does nothing; this *is not* markup to force a page break. -->
</xsl:template>
-</xsl:stylesheet>
+</xsl:stylesheet> \ No newline at end of file