Forgot to add these macros to a samba-docs repository
authorAlexander Bokovoy <ab@samba.org>
Mon, 7 Apr 2008 11:08:19 +0000 (11:08 +0000)
committerGerald W. Carter <jerry@samba.org>
Wed, 23 Apr 2008 13:47:45 +0000 (08:47 -0500)
(This used to be commit b0df61bb4d184eb2b20ff5e9c7876721e44832dd)

docs/xslt/man.xsl

index e403122965d986c21d794aa1fdf6c98284404177..99b2112cb3af7c7d63d748dc7334d9c9cb9b8ca0 100644 (file)
   <xsl:apply-templates/>
 </xsl:template>
 
+  <!-- ================================================================== -->
+  <!-- These macros are from Docbook manpages XSLT development tree       -->
+  <!-- help to maintain manpage generation clean when difference between  -->
+  <!-- roff processors is important to note.                              -->
+
+  <xsl:template name="roff-if-else-start">
+    <xsl:param name="condition">n</xsl:param>
+    <xsl:text>.ie </xsl:text>
+    <xsl:value-of select="$condition"/>
+    <xsl:text> \{\&#10;</xsl:text>
+  </xsl:template>
+
+  <xsl:template name="roff-if-start">
+    <xsl:param name="condition">n</xsl:param>
+    <xsl:text>.if </xsl:text>
+    <xsl:value-of select="$condition"/>
+    <xsl:text> \{\&#10;</xsl:text>
+  </xsl:template>
+
+  <xsl:template name="roff-else">
+    <xsl:text>.\}&#10;</xsl:text>
+    <xsl:text>.el \{\&#10;</xsl:text>
+  </xsl:template>
+
+  <xsl:template name="roff-if-end">
+    <xsl:text>.\}&#10;</xsl:text>
+  </xsl:template>
 
 </xsl:stylesheet>