blob: 28aed56b341d3a78842a4c2373af819645d6e03d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
<?xml version='1.0'?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ref="http://www.gnome.org/~shaunm/mallard/reference"
exclude-result-prefixes="ref"
version="1.0">
<ref:title>Function Synopses</ref:title>
<!-- == db2html.funcsynopsis.style == -->
<ref:refname>db2html.funcsynopsis.style</ref:refname>
<ref:refpurpose>
How to render <ref:xmltag>funcsynopsis</ref:xmltag> elements,
either <ref:constant>'K&R'</ref:constant> or
<ref:constant>'ANSI'</ref:constant>
</ref:refpurpose>
<xsl:param name="db2html.funcsynopsis.style">
<xsl:choose>
<xsl:when test="processing-instruction('db2html.funcsynopsis.style')">
<xsl:value-of
select="processing-instruction('db2html.funcsynopsis.style')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'ANSI'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<!-- == db2html.funcsynopsis == -->
<ref:refname>db2html.funcsynopsis</ref:refname>
<ref:refpurpose>
Process <ref:xmltag>funcsynopsis</ref:xmltag> elements
</ref:refpurpose>
<xsl:template name="db2html.funcsynopsis">
<xsl:param name="style">
<xsl:choose>
<xsl:when test="processing-instruction('db2html.funcsynopsis.style')">
<xsl:value-of
select="processing-instruction('db2html.funcsynopsis.style')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$db2html.funcsynopsis.style"/>
</xsl:otherwise>
</xsl:choose>
</xsl:param>
<div class="funcsynopsis">
<xsl:call-template name="db2html.anchor"/>
<xsl:apply-templates mode="db2html.funcsynopsis.mode">
<xsl:with-param name="style" select="$style"/>
</xsl:apply-templates>
</div>
</xsl:template>
<!-- == Matched Templates == -->
<!-- = funcsynopsis = -->
<xsl:template match="funcsynopsis">
<xsl:call-template name="db2html.funcsynopsis"/>
</xsl:template>
<!-- = db2html.funcsynopsis.mode == funcsynopsisinfo = -->
<xsl:template mode="db2html.funcsynopsis.mode" match="funcsynopsisinfo">
<pre class="funcsynopsisinfo">
<xsl:apply-templates/>
</pre>
</xsl:template>
</xsl:stylesheet>
|