manpage-suppress-sp.xsl 737 B

12345678910111213141516171819202122
  1. <!-- manpage-suppress-sp.xsl:
  2. special settings for manpages rendered from asciidoc+docbook
  3. handles erroneous, inline .sp in manpage output of some
  4. versions of docbook-xsl -->
  5. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  6. version="1.0">
  7. <!-- attempt to work around spurious .sp at the tail of the line
  8. that some versions of docbook stylesheets seem to add -->
  9. <xsl:template match="simpara">
  10. <xsl:variable name="content">
  11. <xsl:apply-templates/>
  12. </xsl:variable>
  13. <xsl:value-of select="normalize-space($content)"/>
  14. <xsl:if test="not(ancestor::authorblurb) and
  15. not(ancestor::personblurb)">
  16. <xsl:text>&#10;&#10;</xsl:text>
  17. </xsl:if>
  18. </xsl:template>
  19. </xsl:stylesheet>