Debian Codegraph @

man/opencl-manpages.xsl

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
•1 <?xml version='1.0'?>
2 <xsl:stylesheet
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
4
5 <xsl:import href="http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl"/>
6 <xsl:param name="man.base.url.for.relative.links"></xsl:param>
7
8 <!-- OpenCL XML sources are not very man-friendly: they have a single
9 refentry with comma-space separated entries instead of multiple refentries,
10 and some general pages have refentry names that are not individual function names.
11 Therefore, we can't use the default write.man.file template from the docbook manpage
12 stylesheet, and it's better to specify the output filename on the command line instead. -->
13 <xsl:template name="write.man.file">
14 <xsl:param name="name"/>
15 <xsl:param name="section"/>
16 <xsl:param name="lang"/>
17 <xsl:param name="content"/>
18 <xsl:call-template name="write.text.chunk">
19 <xsl:with-param name="filename" select="''"/>
20 <xsl:with-param name="suppress-context-node-name" select="1"/>
21 <xsl:with-param name="quiet" select="$man.output.quietly"/>
22 <xsl:with-param
23 name="message-prolog"
24 >Note: </xsl:with-param>
25 <xsl:with-param name="encoding" select="$man.output.encoding"/>
26 <xsl:with-param name="content" select="$content"/>
27 </xsl:call-template>
28 </xsl:template>
29
30 <!-- citerefentry should use the href to get the correct reference if present.
31 also, no manvolnum is specified in the OpenCL pages, so assume our own -->
32 <xsl:template match="citerefentry">
33 <xsl:variable name="vol" select="/refentry/refmeta/manvolnum"/>
34 <xsl:variable name="entry">
35 <xsl:choose>
36 <xsl:when test="@href">
37 <xsl:value-of select="@href"/>
38 </xsl:when>
39 <xsl:otherwise>
40 <xsl:value-of select="refentrytitle"/>
41 </xsl:otherwise>
42 </xsl:choose>
43 </xsl:variable>
44 <xsl:call-template name="do-citerefentry">
45 <xsl:with-param name="refentrytitle" select="$entry"/>
46 <xsl:with-param name="manvolnum" select="$vol"/>
47 </xsl:call-template>
48 </xsl:template>
49
50
51 </xsl:stylesheet>