2009-03-27 09:43:59 +03:00
|
|
|
<!-- manpage-base.xsl:
|
|
|
|
special formatting for manpages rendered from asciidoc+docbook -->
|
|
|
|
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
|
version="1.0">
|
|
|
|
|
2009-03-27 09:44:01 +03:00
|
|
|
<!-- these params silence some output from xmlto -->
|
|
|
|
<xsl:param name="man.output.quietly" select="1"/>
|
|
|
|
<xsl:param name="refentry.meta.get.quietly" select="1"/>
|
|
|
|
|
2009-03-27 09:43:59 +03:00
|
|
|
<!-- convert asciidoc callouts to man page format;
|
|
|
|
git.docbook.backslash and git.docbook.dot params
|
|
|
|
must be supplied by another XSL file or other means -->
|
2006-04-28 17:15:06 +04:00
|
|
|
<xsl:template match="co">
|
2009-03-27 09:43:59 +03:00
|
|
|
<xsl:value-of select="concat(
|
|
|
|
$git.docbook.backslash,'fB(',
|
|
|
|
substring-after(@id,'-'),')',
|
|
|
|
$git.docbook.backslash,'fR')"/>
|
2006-04-28 17:15:06 +04:00
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="calloutlist">
|
2009-03-27 09:43:59 +03:00
|
|
|
<xsl:value-of select="$git.docbook.dot"/>
|
|
|
|
<xsl:text>sp </xsl:text>
|
2006-04-28 17:15:06 +04:00
|
|
|
<xsl:apply-templates/>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="callout">
|
2009-03-27 09:43:59 +03:00
|
|
|
<xsl:value-of select="concat(
|
|
|
|
$git.docbook.backslash,'fB',
|
|
|
|
substring-after(@arearefs,'-'),
|
|
|
|
'. ',$git.docbook.backslash,'fR')"/>
|
2006-04-28 17:15:06 +04:00
|
|
|
<xsl:apply-templates/>
|
2009-03-27 09:43:59 +03:00
|
|
|
<xsl:value-of select="$git.docbook.dot"/>
|
|
|
|
<xsl:text>br </xsl:text>
|
2006-12-13 11:58:28 +03:00
|
|
|
</xsl:template>
|
|
|
|
|
2006-04-28 17:15:06 +04:00
|
|
|
</xsl:stylesheet>
|