Code

6d3eb1912a09ee2c5925033e0cfd3bb973626b6c
[git.git] / Documentation / manpage-base.xsl
1 <!-- 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">
6 <!-- convert asciidoc callouts to man page format;
7      git.docbook.backslash and git.docbook.dot params
8      must be supplied by another XSL file or other means -->
9 <xsl:template match="co">
10         <xsl:value-of select="concat(
11                               $git.docbook.backslash,'fB(',
12                               substring-after(@id,'-'),')',
13                               $git.docbook.backslash,'fR')"/>
14 </xsl:template>
15 <xsl:template match="calloutlist">
16         <xsl:value-of select="$git.docbook.dot"/>
17         <xsl:text>sp&#10;</xsl:text>
18         <xsl:apply-templates/>
19         <xsl:text>&#10;</xsl:text>
20 </xsl:template>
21 <xsl:template match="callout">
22         <xsl:value-of select="concat(
23                               $git.docbook.backslash,'fB',
24                               substring-after(@arearefs,'-'),
25                               '. ',$git.docbook.backslash,'fR')"/>
26         <xsl:apply-templates/>
27         <xsl:value-of select="$git.docbook.dot"/>
28         <xsl:text>br&#10;</xsl:text>
29 </xsl:template>
31 </xsl:stylesheet>