Back to home page

OSCL-LXR

 
 

    


0001 <!-- manpage-base.xsl:
0002      special formatting for manpages rendered from asciidoc+docbook -->
0003 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
0004                 version="1.0">
0005 
0006 <!-- these params silence some output from xmlto -->
0007 <xsl:param name="man.output.quietly" select="1"/>
0008 <xsl:param name="refentry.meta.get.quietly" select="1"/>
0009 
0010 <!-- convert asciidoc callouts to man page format;
0011      git.docbook.backslash and git.docbook.dot params
0012      must be supplied by another XSL file or other means -->
0013 <xsl:template match="co">
0014         <xsl:value-of select="concat(
0015                               $git.docbook.backslash,'fB(',
0016                               substring-after(@id,'-'),')',
0017                               $git.docbook.backslash,'fR')"/>
0018 </xsl:template>
0019 <xsl:template match="calloutlist">
0020         <xsl:value-of select="$git.docbook.dot"/>
0021         <xsl:text>sp&#10;</xsl:text>
0022         <xsl:apply-templates/>
0023         <xsl:text>&#10;</xsl:text>
0024 </xsl:template>
0025 <xsl:template match="callout">
0026         <xsl:value-of select="concat(
0027                               $git.docbook.backslash,'fB',
0028                               substring-after(@arearefs,'-'),
0029                               '. ',$git.docbook.backslash,'fR')"/>
0030         <xsl:apply-templates/>
0031         <xsl:value-of select="$git.docbook.dot"/>
0032         <xsl:text>br&#10;</xsl:text>
0033 </xsl:template>
0034 
0035 </xsl:stylesheet>