]>
Commit | Line | Data |
---|---|---|
ae8d09b8 CJ |
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"> | |
5 | ||
9d8d13a8 CJ |
6 | <!-- 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 | ||
ae8d09b8 CJ |
10 | <!-- 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 --> | |
776e994a | 13 | <xsl:template match="co"> |
ae8d09b8 CJ |
14 | <xsl:value-of select="concat( |
15 | $git.docbook.backslash,'fB(', | |
16 | substring-after(@id,'-'),')', | |
17 | $git.docbook.backslash,'fR')"/> | |
776e994a SE |
18 | </xsl:template> |
19 | <xsl:template match="calloutlist"> | |
ae8d09b8 CJ |
20 | <xsl:value-of select="$git.docbook.dot"/> |
21 | <xsl:text>sp </xsl:text> | |
776e994a SE |
22 | <xsl:apply-templates/> |
23 | <xsl:text> </xsl:text> | |
24 | </xsl:template> | |
25 | <xsl:template match="callout"> | |
ae8d09b8 CJ |
26 | <xsl:value-of select="concat( |
27 | $git.docbook.backslash,'fB', | |
28 | substring-after(@arearefs,'-'), | |
29 | '. ',$git.docbook.backslash,'fR')"/> | |
776e994a | 30 | <xsl:apply-templates/> |
ae8d09b8 CJ |
31 | <xsl:value-of select="$git.docbook.dot"/> |
32 | <xsl:text>br </xsl:text> | |
7ef04350 JH |
33 | </xsl:template> |
34 | ||
776e994a | 35 | </xsl:stylesheet> |