1 <!-- callout.xsl: converts asciidoc callouts to man page format -->
2 <xsl:stylesheet xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform" version=
"1.0">
3 <xsl:template match=
"co">
4 <xsl:value-of select=
"concat('\fB(',substring-after(@id,'-'),')\fR')"/>
6 <xsl:template match=
"calloutlist">
7 <xsl:text>.sp
</xsl:text>
9 <xsl:text> </xsl:text>
11 <xsl:template match=
"callout">
12 <xsl:value-of select=
"concat('\fB',substring-after(@arearefs,'-'),'. \fR')"/>
13 <xsl:apply-templates/>
14 <xsl:text>.br
</xsl:text>
17 <!-- sorry, this is not about callouts, but attempts to work around
18 spurious .sp at the tail of the line docbook stylesheets seem to add -->
19 <xsl:template match=
"simpara">
20 <xsl:variable name=
"content">
21 <xsl:apply-templates/>
23 <xsl:value-of select=
"normalize-space($content)"/>
24 <xsl:if test=
"not(ancestor::authorblurb) and
25 not(ancestor::personblurb)">
26 <xsl:text> </xsl:text>