Debian Codegraph @

docs/manual.xsl

raw
1 <?xml version='1.0' encoding="iso-8859-1"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version='1.0'>
3
4 <!-- Target Database set by the command line
5
6 <xsl:param name="target.database.document">olinkdb.xml</xsl:param>
7 -->
8
9 <!-- Use the Bob Stayton's Tip related to olinking -->
10 <xsl:param name="current.docid" select="/*/@id"/>
11
12 <!-- Use the literal scaling feature -->
13 <xsl:param name="literal.extensions">scale.by.width</xsl:param>
14
15 <!-- We want the TOC links in the titles, and in blue. -->
16 <xsl:param name="latex.hyperparam">colorlinks,linkcolor=blue,pdfstartview=FitH</xsl:param>
17
18 <!-- Put the dblatex logo -->
19 <xsl:param name="doc.publisher.show">1</xsl:param>
20
21 <!-- Show the list of examples too -->
22 <xsl:param name="doc.lot.show">figure,table,example</xsl:param>
23
24 <!-- DocBook like description -->
25 <xsl:param name="term.breakline">1</xsl:param>
26
27 <!-- Manpage titles not numbered -->
28 <xsl:param name="refentry.numbered">0</xsl:param>
29
30 <xsl:template match="parameter">
31 <xsl:variable name="name" select="."/>
32 <xsl:variable name="target" select="key('id',$name)[1]"/>
33
34 <xsl:choose>
35 <xsl:when test="count($target) &gt; 0">
36 <!-- Hot link to the parameter refentry -->
37 <xsl:call-template name="hyperlink.markup">
38 <xsl:with-param name="linkend" select="$name"/>
39 <xsl:with-param name="text">
40 <xsl:apply-imports/>
41 </xsl:with-param>
42 </xsl:call-template>
43 <!-- Index entry for this parameter -->
44 <xsl:text>\index{Parameters!</xsl:text>
45 <xsl:value-of select="$name"/>
46 <xsl:text>}</xsl:text>
47 </xsl:when>
48 <xsl:otherwise>
49 <!--
50 <xsl:message>No reference for parameter: '<xsl:value-of
51 select="$name"/>'</xsl:message>
52 -->
53 <xsl:apply-imports/>
54 </xsl:otherwise>
55 </xsl:choose>
56 </xsl:template>
57
58 <xsl:template match="sgmltag[@class='xmlpi']">
59 <xsl:variable name="name" select="normalize-space(.)"/>
60 <xsl:variable name="nameref" select="concat('pi-',translate($name,' ','_'))"/>
61 <xsl:variable name="target" select="key('id',$nameref)[1]"/>
62
63 <xsl:choose>
64 <xsl:when test="count($target) &gt; 0">
65 <!-- Hot link to the parameter refentry -->
66 <xsl:call-template name="hyperlink.markup">
67 <xsl:with-param name="linkend" select="$nameref"/>
68 <xsl:with-param name="text">
69 <xsl:apply-imports/>
70 </xsl:with-param>
71 </xsl:call-template>
72 <!-- Index entry for this parameter -->
73 <xsl:text>\index{Processing Instructions!</xsl:text>
74 <xsl:value-of select="$name"/>
75 <xsl:text>}</xsl:text>
76 </xsl:when>
77 <xsl:otherwise>
78 <!--
79 <xsl:message>No reference for parameter: '<xsl:value-of
80 select="$name"/>'</xsl:message>
81 -->
82 <xsl:apply-imports/>
83 </xsl:otherwise>
84 </xsl:choose>
85 </xsl:template>
86
87 </xsl:stylesheet>