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