^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 1) <!-- manpage-base.xsl:
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 2) special formatting for manpages rendered from asciidoc+docbook -->
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 3) <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 4) version="1.0">
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 5)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 6) <!-- these params silence some output from xmlto -->
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 7) <xsl:param name="man.output.quietly" select="1"/>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 8) <xsl:param name="refentry.meta.get.quietly" select="1"/>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 9)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) <!-- convert asciidoc callouts to man page format;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) git.docbook.backslash and git.docbook.dot params
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) must be supplied by another XSL file or other means -->
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) <xsl:template match="co">
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) <xsl:value-of select="concat(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) $git.docbook.backslash,'fB(',
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) substring-after(@id,'-'),')',
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) $git.docbook.backslash,'fR')"/>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) </xsl:template>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) <xsl:template match="calloutlist">
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) <xsl:value-of select="$git.docbook.dot"/>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) <xsl:text>sp </xsl:text>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) <xsl:apply-templates/>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) <xsl:text> </xsl:text>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) </xsl:template>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) <xsl:template match="callout">
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) <xsl:value-of select="concat(
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 27) $git.docbook.backslash,'fB',
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 28) substring-after(@arearefs,'-'),
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 29) '. ',$git.docbook.backslash,'fR')"/>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 30) <xsl:apply-templates/>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 31) <xsl:value-of select="$git.docbook.dot"/>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 32) <xsl:text>br </xsl:text>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 33) </xsl:template>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 34)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 35) </xsl:stylesheet>