svn commit: samba-docs r1261 - in trunk/xslt: .

ab at samba.org ab at samba.org
Mon Apr 7 11:08:19 GMT 2008


Author: ab
Date: 2008-04-07 11:08:19 +0000 (Mon, 07 Apr 2008)
New Revision: 1261

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba-docs&rev=1261

Log:
Forgot to add these macros to a samba-docs repository
Modified:
   trunk/xslt/man.xsl


Changeset:
Modified: trunk/xslt/man.xsl
===================================================================
--- trunk/xslt/man.xsl	2008-04-07 05:43:55 UTC (rev 1260)
+++ trunk/xslt/man.xsl	2008-04-07 11:08:19 UTC (rev 1261)
@@ -115,5 +115,32 @@
   <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>



More information about the samba-cvs mailing list