~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to man/eng/html-jpc-rev.xsl

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
3
<xsl:output method="html" indent="yes"  />
 
4
 
 
5
<!-- from hml.xsl matt. revisited: jpc 21 sept 2003 -->
 
6
 
 
7
<xsl:strip-space elements="*"/>
 
8
 
 
9
<xsl:template match="MAN">
 
10
 <html>
 
11
 <head>
 
12
 <title><xsl:for-each select="./SHORT_DESCRIPTION"><xsl:value-of select="@name"/></xsl:for-each>
 
13
 </title>
 
14
 </head>
 
15
 <body bgcolor="#FFFFFF">
 
16
 <center><xsl:value-of select="./TYPE"/></center>
 
17
 <xsl:for-each select="./SHORT_DESCRIPTION">
 
18
   <p><b><xsl:value-of select="@name"/></b> - <xsl:value-of select="text()"/></p>
 
19
 </xsl:for-each>
 
20
 <xsl:apply-templates/>
 
21
 </body>
 
22
 </html>
 
23
</xsl:template>
 
24
 
 
25
<!-- ignored -->
 
26
 
 
27
<xsl:template match="LANGUAGE|TITLE|TYPE|DATE|NAME|KEYWORD|SHORT_DESCRIPTION"></xsl:template>
 
28
 
 
29
<!-- calling sequence -->
 
30
 
 
31
<xsl:template match="CALLING_SEQUENCE_N">
 
32
  <h3><font color="blue">Calling Sequence</font></h3>
 
33
  <dl>
 
34
  <xsl:for-each  select="./CALLING_SEQUENCE_ITEM">
 
35
     <dd><tt><xsl:apply-templates/></tt></dd>
 
36
  </xsl:for-each>
 
37
  </dl>
 
38
</xsl:template>
 
39
 
 
40
<xsl:template match="CALLING_SEQUENCE">
 
41
  <h3><font color="blue">Calling Sequence</font></h3>
 
42
  <table width="100%" bgcolor="#eeeeee"><tr><td>
 
43
  <dl>
 
44
  <xsl:for-each  select="./CALLING_SEQUENCE_ITEM">
 
45
     <dd><tt><xsl:apply-templates/></tt></dd>
 
46
  </xsl:for-each>
 
47
  </dl>
 
48
  </td></tr></table>
 
49
</xsl:template>
 
50
 
 
51
<!-- parameters -->
 
52
 
 
53
<xsl:template match="PARAM">
 
54
   <h3><font color="blue">Parameters</font></h3>
 
55
   <xsl:apply-templates/>
 
56
</xsl:template>
 
57
 
 
58
<xsl:template match="PARAM[@target='in']">
 
59
   <h3><font color="blue">Input Parameters</font></h3>
 
60
   <xsl:apply-templates/>
 
61
</xsl:template>
 
62
 
 
63
<xsl:template match="PARAM[@target='out']">
 
64
  <h3><font color="blue">Output Parameters</font></h3>
 
65
   <xsl:apply-templates/>
 
66
</xsl:template>
 
67
 
 
68
<xsl:template match="PARAM_INDENT">
 
69
  <ul>
 
70
  <xsl:for-each  select="./PARAM_ITEM"><li><xsl:apply-templates/></li></xsl:for-each>
 
71
  </ul>
 
72
</xsl:template>
 
73
 
 
74
<xsl:template match="PARAM_ITEM"><xsl:apply-templates/></xsl:template>
 
75
 
 
76
<xsl:template match="PARAM_DESCRIPTION"><xsl:apply-templates/></xsl:template>
 
77
 
 
78
<xsl:template match="PARAM_NAME"><tt><b><xsl:value-of select="text()"/></b></tt></xsl:template>
 
79
 
 
80
<!-- Description -->
 
81
 
 
82
<xsl:template match="DESCRIPTION">
 
83
  <h3><font color="blue">Description</font></h3>
 
84
  <xsl:apply-templates/>
 
85
</xsl:template>
 
86
 
 
87
<xsl:template match="DESCRIPTION_INDENT">
 
88
  <dl>
 
89
  <xsl:for-each  select="./DESCRIPTION_ITEM">
 
90
     <dd><b><xsl:value-of select="@label"/></b><xsl:apply-templates/></dd>
 
91
  </xsl:for-each>
 
92
  </dl>
 
93
</xsl:template>
 
94
 
 
95
<!-- Other sections  -->
 
96
 
 
97
<xsl:template match="SECTION">
 
98
  <h3><font color="blue"><xsl:value-of select="@label"/></font></h3>
 
99
  <dl><xsl:apply-templates select="ITEMIZE|P|TABLE|A|VERBATIM|text()"/></dl>
 
100
</xsl:template>
 
101
 
 
102
<!-- Example  -->
 
103
 
 
104
<xsl:template match="EXAMPLE_N">
 
105
  <h3><font color="blue">Examples</font></h3>
 
106
  <pre>
 
107
  <xsl:value-of select="self::node()"/>
 
108
  </pre>
 
109
</xsl:template>
 
110
 
 
111
<xsl:template match="EXAMPLE">
 
112
  <h3><font color="blue">Examples</font></h3>
 
113
  <table width="100%" bgcolor="lightblue"><tr><td><pre><xsl:value-of select="self::node()"/></pre></td></tr></table>
 
114
</xsl:template>
 
115
 
 
116
<!-- See also  -->
 
117
 
 
118
<xsl:template match="SEE_ALSO">
 
119
  <h3><font color="blue">See Also</font></h3>
 
120
  <p>
 
121
  <xsl:for-each  select="./SEE_ALSO_ITEM">
 
122
    <xsl:apply-templates select="A|LINK"/>
 
123
    <xsl:text disable-output-escaping="yes">,&amp;nbsp;</xsl:text>
 
124
    <xsl:text disable-output-escaping="yes">&amp;nbsp;</xsl:text>
 
125
  </xsl:for-each>
 
126
  </p>
 
127
</xsl:template>
 
128
 
 
129
<!-- Authors  -->
 
130
 
 
131
<xsl:template match="AUTHOR">
 
132
  <h3><font color="blue">Author</font></h3>
 
133
  <p><xsl:value-of select="self::node()"/></p>
 
134
</xsl:template>
 
135
 
 
136
<xsl:template match="AUTHORS">
 
137
  <h3><font color="blue">Authors</font></h3>
 
138
  <dl>
 
139
  <xsl:for-each  select="./AUTHORS_ITEM">
 
140
     <dd><b><xsl:value-of select="@label"/></b><xsl:apply-templates/></dd>
 
141
  </xsl:for-each>
 
142
  </dl>
 
143
</xsl:template>
 
144
 
 
145
<!-- Biblio  -->
 
146
 
 
147
<xsl:template match="BIBLIO">
 
148
  <h3><font color="blue">Bibliography</font></h3>
 
149
  <xsl:apply-templates/>
 
150
</xsl:template>
 
151
 
 
152
<!-- ?  -->
 
153
 
 
154
<xsl:template match="USED_FUNCTIONS">
 
155
  <h3><font color="blue">Used Function</font></h3>
 
156
  <xsl:apply-templates/>
 
157
</xsl:template>
 
158
 
 
159
<!-- miscelanous  -->
 
160
 
 
161
<xsl:template match="ITEMIZE">
 
162
  <dd><xsl:apply-templates select="ITEM"/></dd>
 
163
</xsl:template>
 
164
 
 
165
<xsl:template match="ITEM">
 
166
  <li><b><font color="maroon"><xsl:value-of select="@label"/></font></b><xsl:apply-templates/></li>
 
167
</xsl:template>
 
168
 
 
169
<xsl:template match="TABLE">
 
170
  <div align="center">
 
171
  <table border="2">
 
172
  <xsl:for-each select="./TABLE_NEW_ROW">
 
173
  <tr align="center">
 
174
    <xsl:for-each select="./TABLE_NEW_COLUMN">
 
175
      <td><xsl:value-of select="./text()"/></td>
 
176
    </xsl:for-each>
 
177
        </tr>
 
178
  </xsl:for-each>
 
179
        </table>
 
180
        </div>
 
181
</xsl:template>
 
182
 
 
183
<xsl:template match="VERB">
 
184
  <tt><b><xsl:value-of select="./text()"/></b></tt>
 
185
</xsl:template>
 
186
 
 
187
<xsl:template match="EM">
 
188
  <em><xsl:value-of select="./text()"/></em>
 
189
</xsl:template>
 
190
 
 
191
<xsl:template match="TT">
 
192
  <tt><xsl:value-of select="./text()"/></tt>
 
193
</xsl:template>
 
194
 
 
195
<xsl:template match="BD"><b><xsl:value-of select="./text()"/></b></xsl:template>
 
196
 
 
197
<xsl:template match="A">
 
198
  <a><xsl:attribute name="href"><xsl:value-of select='@href'/></xsl:attribute>
 
199
    <xsl:apply-templates select="VERB|text()"/></a>
 
200
</xsl:template>
 
201
 
 
202
<!-- paragraph -->
 
203
<xsl:template match="P"><p><xsl:apply-templates/></p></xsl:template>
 
204
 
 
205
<!-- simple paragraph -->
 
206
<xsl:template match="SP"><xsl:apply-templates/></xsl:template>
 
207
 
 
208
<xsl:template match="VERBATIM">
 
209
  <pre><xsl:value-of select="self::node()"/></pre>
 
210
</xsl:template>
 
211
 
 
212
</xsl:stylesheet>
 
213
 
 
214
 
 
215