2009-03-27 07:43:59 +01: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 07:44:01 +01: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 07:43:59 +01: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 15:15:06 +02:00
|
|
|
<xsl:template match="co">
|
2009-03-27 07:43:59 +01:00
|
|
|
<xsl:value-of select="concat(
|
|
|
|
$git.docbook.backslash,'fB(',
|
|
|
|
substring-after(@id,'-'),')',
|
|
|
|
$git.docbook.backslash,'fR')"/>
|
2006-04-28 15:15:06 +02:00
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="calloutlist">
|
2009-03-27 07:43:59 +01:00
|
|
|
<xsl:value-of select="$git.docbook.dot"/>
|
|
|
|
<xsl:text>sp </xsl:text>
|
2006-04-28 15:15:06 +02:00
|
|
|
<xsl:apply-templates/>
|
|
|
|
<xsl:text> </xsl:text>
|
|
|
|
</xsl:template>
|
|
|
|
<xsl:template match="callout">
|
2009-03-27 07:43:59 +01:00
|
|
|
<xsl:value-of select="concat(
|
|
|
|
$git.docbook.backslash,'fB',
|
|
|
|
substring-after(@arearefs,'-'),
|
|
|
|
'. ',$git.docbook.backslash,'fR')"/>
|
2006-04-28 15:15:06 +02:00
|
|
|
<xsl:apply-templates/>
|
2009-03-27 07:43:59 +01:00
|
|
|
<xsl:value-of select="$git.docbook.dot"/>
|
|
|
|
<xsl:text>br </xsl:text>
|
2006-12-13 09:58:28 +01:00
|
|
|
</xsl:template>
|
|
|
|
|
2006-04-28 15:15:06 +02:00
|
|
|
</xsl:stylesheet>
|