]> granicus.if.org Git - docbook-dsssl/commitdiff
Took some templates for matching inline instances of come
authorMichael Smith <xmldoc@users.sourceforge.net>
Wed, 15 Mar 2006 12:23:27 +0000 (12:23 +0000)
committerMichael Smith <xmldoc@users.sourceforge.net>
Wed, 15 Mar 2006 12:23:27 +0000 (12:23 +0000)
"computer" markup and moved them out of synop.xsl file and into
the inline.xsl file.

xsl/manpages/inline.xsl
xsl/manpages/synop.xsl

index d32fb8c91c0a4f32e369d8fd2df1d21db10f898d..67328c83de3dbb82489dc5ef646e28762346f501 100644 (file)
   <xsl:apply-templates/>
 </xsl:template>
 
+<xsl:template match="command">
+  <xsl:if test="$man.hyphenate.computer.inlines = 0">
+    <xsl:call-template name="suppress.hyphenation"/>
+  </xsl:if>
+  <xsl:apply-templates mode="bold" select="."/>
+</xsl:template>
+
+<xsl:template match="function[not(ancestor::cmdsynopsis) and
+                     not(ancestor::funcsynopsis)]">
+  <xsl:if test="$man.hyphenate.computer.inlines = 0">
+    <xsl:call-template name="suppress.hyphenation"/>
+  </xsl:if>
+  <xsl:apply-templates mode="bold" select="."/>
+</xsl:template>
+
+<xsl:template match="parameter[not(ancestor::cmdsynopsis) and
+                     not(ancestor::funcsynopsis)]">
+  <xsl:if test="$man.hyphenate.computer.inlines = 0">
+    <xsl:call-template name="suppress.hyphenation"/>
+  </xsl:if>
+  <xsl:apply-templates mode="italic" select="."/>
+</xsl:template>
+
 <xsl:template match="filename">
   <!-- * add hyphenation suppression in Filename output only if -->
   <!-- * break.after.slash is also non-zero -->
index 4026ca5ca516a58e5e58fed91121f8c498b6dffa..e6a74219ac704bab2b8f93027e4b532885518d7b 100644 (file)
   <xsl:call-template name="group-or-arg"/>
 </xsl:template>
 
-
-<xsl:template match="command">
-  <xsl:call-template name="suppress.hyphenation"/>
-  <xsl:apply-templates mode="bold" select="."/>
-</xsl:template>
-
-<xsl:template match="function[not(ancestor::command)]">
-  <xsl:call-template name="suppress.hyphenation"/>
-  <xsl:apply-templates mode="bold" select="."/>
-</xsl:template>
-
-<xsl:template match="parameter[not(ancestor::command)]">
-  <xsl:call-template name="suppress.hyphenation"/>
-  <xsl:apply-templates mode="italic" select="."/>
-</xsl:template>
-
 <xsl:template match="sbr">
   <xsl:text>&#10;</xsl:text>
   <xsl:text>.br&#10;</xsl:text>