blob: a264fa616093cf4e28a1080dd76747b008859e19 [file] [log] [blame]
Chris Johnsenae8d09b2009-03-27 01:43:59 -05001<!-- manpage-base.xsl:
2 special formatting for manpages rendered from asciidoc+docbook -->
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 version="1.0">
5
Chris Johnsen9d8d13a2009-03-27 01:44:01 -05006<!-- these params silence some output from xmlto -->
7<xsl:param name="man.output.quietly" select="1"/>
8<xsl:param name="refentry.meta.get.quietly" select="1"/>
9
Chris Johnsenae8d09b2009-03-27 01:43:59 -050010<!-- convert asciidoc callouts to man page format;
11 git.docbook.backslash and git.docbook.dot params
12 must be supplied by another XSL file or other means -->
Sean Estabrooks776e9942006-04-28 09:15:06 -040013<xsl:template match="co">
Chris Johnsenae8d09b2009-03-27 01:43:59 -050014 <xsl:value-of select="concat(
15 $git.docbook.backslash,'fB(',
16 substring-after(@id,'-'),')',
17 $git.docbook.backslash,'fR')"/>
Sean Estabrooks776e9942006-04-28 09:15:06 -040018</xsl:template>
19<xsl:template match="calloutlist">
Chris Johnsenae8d09b2009-03-27 01:43:59 -050020 <xsl:value-of select="$git.docbook.dot"/>
21 <xsl:text>sp&#10;</xsl:text>
Sean Estabrooks776e9942006-04-28 09:15:06 -040022 <xsl:apply-templates/>
23 <xsl:text>&#10;</xsl:text>
24</xsl:template>
25<xsl:template match="callout">
Chris Johnsenae8d09b2009-03-27 01:43:59 -050026 <xsl:value-of select="concat(
27 $git.docbook.backslash,'fB',
28 substring-after(@arearefs,'-'),
29 '. ',$git.docbook.backslash,'fR')"/>
Sean Estabrooks776e9942006-04-28 09:15:06 -040030 <xsl:apply-templates/>
Chris Johnsenae8d09b2009-03-27 01:43:59 -050031 <xsl:value-of select="$git.docbook.dot"/>
32 <xsl:text>br&#10;</xsl:text>
Junio C Hamano7ef04352006-12-13 00:58:28 -080033</xsl:template>
34
Sean Estabrooks776e9942006-04-28 09:15:06 -040035</xsl:stylesheet>