~ubuntu-branches/ubuntu/vivid/installation-guide/vivid-proposed

« back to all changes in this revision

Viewing changes to build/stylesheets/db2latex/sgmltag.mod.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Frans Pop
  • Date: 2005-10-25 17:37:25 UTC
  • Revision ID: james.westby@ubuntu.com-20051025173725-aq0bm11be7bfd7rw
Tags: 20051025
* Mention in copyright that full GPL is included in the manual.
  Closes: #334925
* Register installed documents with doc-base.
* Minor updates in English text and translations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version='1.0'?>
 
2
<!DOCTYPE xsl:stylesheet [ <!ENTITY % xsldoc.ent SYSTEM "./xsldoc.ent"> %xsldoc.ent; ]>
 
3
<!--############################################################################# 
 
4
|       $Id: sgmltag.mod.xsl,v 1.5 2003/12/31 13:18:04 j-devenish Exp $
 
5
|- #############################################################################
 
6
|       $Author: j-devenish $
 
7
+ ############################################################################## -->
 
8
 
 
9
<xsl:stylesheet
 
10
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
 
11
        xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
 
12
        exclude-result-prefixes="doc" version='1.0'>
 
13
 
 
14
        <doc:reference id="sgmltag" xmlns="">
 
15
                <referenceinfo>
 
16
                        <releaseinfo role="meta">
 
17
                                $Id: sgmltag.mod.xsl,v 1.5 2003/12/31 13:18:04 j-devenish Exp $
 
18
                        </releaseinfo>
 
19
                        <authorgroup>
 
20
                                &ramon;
 
21
                                &james;
 
22
                        </authorgroup>
 
23
                        <copyright>
 
24
                                <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
 
25
                                <holder>Ramon Casellas</holder>
 
26
                        </copyright>
 
27
                        <revhistory>
 
28
                                <doc:revision rcasver="1.4">&rev_2003_05;</doc:revision>
 
29
                        </revhistory>
 
30
                </referenceinfo>
 
31
                <title><acronym>SGML</acronym> Tags <filename>sgmltag.mod.xsl</filename></title>
 
32
                <partintro>
 
33
                        <para>The file <filename>sgmltag.mod.xsl</filename> contains the
 
34
                        XSL template for <doc:db>sgmltag</doc:db>.</para>
 
35
                </partintro>
 
36
        </doc:reference>
 
37
 
 
38
        <doc:template xmlns="">
 
39
                <refpurpose> Process <doc:db>sgmltag</doc:db> elements </refpurpose>
 
40
                <doc:description>
 
41
                        <para>
 
42
 
 
43
                                Expresses the element using inline sequences plus any necessary
 
44
                                punctuation. Some classes are formatted as monospace text.
 
45
 
 
46
                        </para>
 
47
                </doc:description>
 
48
                <doc:variables>
 
49
                        &no_var;
 
50
                </doc:variables>
 
51
                <doc:notes>
 
52
                        <para>
 
53
                                Unknown classes are emitted without special formatting.
 
54
                        </para>
 
55
                </doc:notes>
 
56
                <doc:samples>
 
57
                        <simplelist type='inline'>
 
58
                                &test_book;
 
59
                        </simplelist>
 
60
                </doc:samples>
 
61
        </doc:template>
 
62
 
 
63
        <xsl:template match="sgmltag">
 
64
                <xsl:param name="class">
 
65
                        <xsl:choose>
 
66
                                <xsl:when test="@class">
 
67
                                        <xsl:value-of select="normalize-space(@class)"/>
 
68
                                </xsl:when>
 
69
                                <xsl:otherwise>element</xsl:otherwise>
 
70
                        </xsl:choose>
 
71
                </xsl:param>
 
72
                <xsl:choose>
 
73
                        <xsl:when test="$class='attribute'">
 
74
                                <xsl:call-template name="inline.charseq"/>
 
75
                        </xsl:when>
 
76
                        <xsl:when test="$class='attvalue'">
 
77
                                <xsl:call-template name="inline.monoseq"/>
 
78
                        </xsl:when>
 
79
                        <xsl:when test="$class='element'">
 
80
                                <xsl:call-template name="inline.monoseq"/>
 
81
                        </xsl:when>
 
82
                        <xsl:when test="$class='endtag'">
 
83
                                <xsl:call-template name="inline.monoseq">
 
84
                                        <xsl:with-param name="content">
 
85
                                                <xsl:text>&lt;/</xsl:text>
 
86
                                                <xsl:apply-templates/>
 
87
                                                <xsl:text>&gt;</xsl:text>
 
88
                                        </xsl:with-param>
 
89
                                </xsl:call-template>
 
90
                        </xsl:when>
 
91
                        <xsl:when test="$class='genentity'">
 
92
                                <xsl:call-template name="inline.monoseq">
 
93
                                        <xsl:with-param name="content">
 
94
                                                <xsl:text>\&amp;</xsl:text>
 
95
                                                <xsl:apply-templates/>
 
96
                                                <xsl:text>;</xsl:text>
 
97
                                        </xsl:with-param>
 
98
                                </xsl:call-template>
 
99
                        </xsl:when>
 
100
                        <xsl:when test="$class='numcharref'">
 
101
                                <xsl:call-template name="inline.monoseq">
 
102
                                        <xsl:with-param name="content">
 
103
                                                <xsl:text>\&amp;\#</xsl:text>
 
104
                                                <xsl:apply-templates/>
 
105
                                                <xsl:text>;</xsl:text>
 
106
                                        </xsl:with-param>
 
107
                                </xsl:call-template>
 
108
                        </xsl:when>
 
109
                        <xsl:when test="$class='paramentity'">
 
110
                                <xsl:call-template name="inline.monoseq">
 
111
                                        <xsl:with-param name="content">
 
112
                                                <xsl:text>\%</xsl:text>
 
113
                                                <xsl:apply-templates/>
 
114
                                                <xsl:text>;</xsl:text>
 
115
                                        </xsl:with-param>
 
116
                                </xsl:call-template>
 
117
                        </xsl:when>
 
118
                        <xsl:when test="$class='pi'">
 
119
                                <xsl:call-template name="inline.monoseq">
 
120
                                        <xsl:with-param name="content">
 
121
                                                <xsl:text>&lt;?</xsl:text>
 
122
                                                <xsl:apply-templates/>
 
123
                                                <xsl:text>?&gt;</xsl:text>
 
124
                                        </xsl:with-param>
 
125
                                </xsl:call-template>
 
126
                        </xsl:when>
 
127
                        <xsl:when test="$class='xmlpi'">
 
128
                                <xsl:call-template name="inline.monoseq">
 
129
                                        <xsl:with-param name="content">
 
130
                                                <xsl:text>&lt;?</xsl:text>
 
131
                                                <xsl:apply-templates/>
 
132
                                                <xsl:text>?&gt;</xsl:text>
 
133
                                        </xsl:with-param>
 
134
                                </xsl:call-template>
 
135
                        </xsl:when>
 
136
                        <xsl:when test="$class='starttag'">
 
137
                                <xsl:call-template name="inline.monoseq">
 
138
                                        <xsl:with-param name="content">
 
139
                                                <xsl:text>&lt;</xsl:text>
 
140
                                                <xsl:apply-templates/>
 
141
                                                <xsl:text>&gt;</xsl:text>
 
142
                                        </xsl:with-param>
 
143
                                </xsl:call-template>
 
144
                        </xsl:when>
 
145
                        <xsl:when test="$class='emptytag'">
 
146
                                <xsl:call-template name="inline.monoseq">
 
147
                                        <xsl:with-param name="content">
 
148
                                                <xsl:text>&lt;</xsl:text>
 
149
                                                <xsl:apply-templates/>
 
150
                                                <xsl:text>/&gt;</xsl:text>
 
151
                                        </xsl:with-param>
 
152
                                </xsl:call-template>
 
153
                        </xsl:when>
 
154
                        <xsl:when test="$class='sgmlcomment'">
 
155
                                <xsl:call-template name="inline.monoseq">
 
156
                                        <xsl:with-param name="content">
 
157
                                                <xsl:text>&lt;!--</xsl:text>
 
158
                                                <xsl:apply-templates/>
 
159
                                                <xsl:text>--&gt;</xsl:text>
 
160
                                        </xsl:with-param>
 
161
                                </xsl:call-template>
 
162
                        </xsl:when>
 
163
                        <xsl:otherwise>
 
164
                                <xsl:call-template name="inline.charseq"/>
 
165
                        </xsl:otherwise>
 
166
                </xsl:choose>
 
167
        </xsl:template>
 
168
 
 
169
</xsl:stylesheet>
 
170