1*81de3bf3SJiri Olsa<!-- manpage-base.xsl: 2*81de3bf3SJiri Olsa special formatting for manpages rendered from asciidoc+docbook --> 3*81de3bf3SJiri Olsa<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 4*81de3bf3SJiri Olsa version="1.0"> 5*81de3bf3SJiri Olsa 6*81de3bf3SJiri Olsa<!-- these params silence some output from xmlto --> 7*81de3bf3SJiri Olsa<xsl:param name="man.output.quietly" select="1"/> 8*81de3bf3SJiri Olsa<xsl:param name="refentry.meta.get.quietly" select="1"/> 9*81de3bf3SJiri Olsa 10*81de3bf3SJiri Olsa<!-- convert asciidoc callouts to man page format; 11*81de3bf3SJiri Olsa git.docbook.backslash and git.docbook.dot params 12*81de3bf3SJiri Olsa must be supplied by another XSL file or other means --> 13*81de3bf3SJiri Olsa<xsl:template match="co"> 14*81de3bf3SJiri Olsa <xsl:value-of select="concat( 15*81de3bf3SJiri Olsa $git.docbook.backslash,'fB(', 16*81de3bf3SJiri Olsa substring-after(@id,'-'),')', 17*81de3bf3SJiri Olsa $git.docbook.backslash,'fR')"/> 18*81de3bf3SJiri Olsa</xsl:template> 19*81de3bf3SJiri Olsa<xsl:template match="calloutlist"> 20*81de3bf3SJiri Olsa <xsl:value-of select="$git.docbook.dot"/> 21*81de3bf3SJiri Olsa <xsl:text>sp </xsl:text> 22*81de3bf3SJiri Olsa <xsl:apply-templates/> 23*81de3bf3SJiri Olsa <xsl:text> </xsl:text> 24*81de3bf3SJiri Olsa</xsl:template> 25*81de3bf3SJiri Olsa<xsl:template match="callout"> 26*81de3bf3SJiri Olsa <xsl:value-of select="concat( 27*81de3bf3SJiri Olsa $git.docbook.backslash,'fB', 28*81de3bf3SJiri Olsa substring-after(@arearefs,'-'), 29*81de3bf3SJiri Olsa '. ',$git.docbook.backslash,'fR')"/> 30*81de3bf3SJiri Olsa <xsl:apply-templates/> 31*81de3bf3SJiri Olsa <xsl:value-of select="$git.docbook.dot"/> 32*81de3bf3SJiri Olsa <xsl:text>br </xsl:text> 33*81de3bf3SJiri Olsa</xsl:template> 34*81de3bf3SJiri Olsa 35*81de3bf3SJiri Olsa</xsl:stylesheet> 36