manpage-normal.xsl 843 B

123456789101112131415161718192021222324252627
  1. <!-- manpage-normal.xsl:
  2. special settings for manpages rendered from asciidoc+docbook -->
  3. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. version="1.0">
  5. <!-- these params silence some output from xmlto -->
  6. <xsl:param name="man.output.quietly" select="1"/>
  7. <xsl:param name="refentry.meta.get.quietly" select="1"/>
  8. <!-- convert asciidoc callouts to man page format -->
  9. <xsl:template match="co">
  10. <xsl:value-of select="concat('\fB(',substring-after(@id,'-'),')\fR')"/>
  11. </xsl:template>
  12. <xsl:template match="calloutlist">
  13. <xsl:text>.sp&#10;</xsl:text>
  14. <xsl:apply-templates/>
  15. <xsl:text>&#10;</xsl:text>
  16. </xsl:template>
  17. <xsl:template match="callout">
  18. <xsl:value-of select="concat('\fB',substring-after(@arearefs,'-'),'. \fR')"/>
  19. <xsl:apply-templates/>
  20. <xsl:text>.br&#10;</xsl:text>
  21. </xsl:template>
  22. </xsl:stylesheet>