2
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
3
<xsl:output method="html" indent="yes" />
5
<!-- from hml.xsl matt. revisited: jpc 21 sept 2003 -->
7
<xsl:strip-space elements="*"/>
9
<xsl:template match="MAN">
12
<title><xsl:for-each select="./SHORT_DESCRIPTION"><xsl:value-of select="@name"/></xsl:for-each>
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>
20
<xsl:apply-templates/>
27
<xsl:template match="LANGUAGE|TITLE|TYPE|DATE|NAME|KEYWORD|SHORT_DESCRIPTION"></xsl:template>
29
<!-- calling sequence -->
31
<xsl:template match="CALLING_SEQUENCE_N">
32
<h3><font color="blue">Calling Sequence</font></h3>
34
<xsl:for-each select="./CALLING_SEQUENCE_ITEM">
35
<dd><tt><xsl:apply-templates/></tt></dd>
40
<xsl:template match="CALLING_SEQUENCE">
41
<h3><font color="blue">Calling Sequence</font></h3>
42
<table width="100%" bgcolor="#eeeeee"><tr><td>
44
<xsl:for-each select="./CALLING_SEQUENCE_ITEM">
45
<dd><tt><xsl:apply-templates/></tt></dd>
53
<xsl:template match="PARAM">
54
<h3><font color="blue">Parameters</font></h3>
55
<xsl:apply-templates/>
58
<xsl:template match="PARAM[@target='in']">
59
<h3><font color="blue">Input Parameters</font></h3>
60
<xsl:apply-templates/>
63
<xsl:template match="PARAM[@target='out']">
64
<h3><font color="blue">Output Parameters</font></h3>
65
<xsl:apply-templates/>
68
<xsl:template match="PARAM_INDENT">
70
<xsl:for-each select="./PARAM_ITEM"><li><xsl:apply-templates/></li></xsl:for-each>
74
<xsl:template match="PARAM_ITEM"><xsl:apply-templates/></xsl:template>
76
<xsl:template match="PARAM_DESCRIPTION"><xsl:apply-templates/></xsl:template>
78
<xsl:template match="PARAM_NAME"><tt><b><xsl:value-of select="text()"/></b></tt></xsl:template>
82
<xsl:template match="DESCRIPTION">
83
<h3><font color="blue">Description</font></h3>
84
<xsl:apply-templates/>
87
<xsl:template match="DESCRIPTION_INDENT">
89
<xsl:for-each select="./DESCRIPTION_ITEM">
90
<dd><b><xsl:value-of select="@label"/></b><xsl:apply-templates/></dd>
95
<!-- Other sections -->
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>
104
<xsl:template match="EXAMPLE_N">
105
<h3><font color="blue">Examples</font></h3>
107
<xsl:value-of select="self::node()"/>
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>
118
<xsl:template match="SEE_ALSO">
119
<h3><font color="blue">See Also</font></h3>
121
<xsl:for-each select="./SEE_ALSO_ITEM">
122
<xsl:apply-templates select="A|LINK"/>
123
<xsl:text disable-output-escaping="yes">,&nbsp;</xsl:text>
124
<xsl:text disable-output-escaping="yes">&nbsp;</xsl:text>
131
<xsl:template match="AUTHOR">
132
<h3><font color="blue">Author</font></h3>
133
<p><xsl:value-of select="self::node()"/></p>
136
<xsl:template match="AUTHORS">
137
<h3><font color="blue">Authors</font></h3>
139
<xsl:for-each select="./AUTHORS_ITEM">
140
<dd><b><xsl:value-of select="@label"/></b><xsl:apply-templates/></dd>
147
<xsl:template match="BIBLIO">
148
<h3><font color="blue">Bibliography</font></h3>
149
<xsl:apply-templates/>
154
<xsl:template match="USED_FUNCTIONS">
155
<h3><font color="blue">Used Function</font></h3>
156
<xsl:apply-templates/>
161
<xsl:template match="ITEMIZE">
162
<dd><xsl:apply-templates select="ITEM"/></dd>
165
<xsl:template match="ITEM">
166
<li><b><font color="maroon"><xsl:value-of select="@label"/></font></b><xsl:apply-templates/></li>
169
<xsl:template match="TABLE">
172
<xsl:for-each select="./TABLE_NEW_ROW">
174
<xsl:for-each select="./TABLE_NEW_COLUMN">
175
<td><xsl:value-of select="./text()"/></td>
183
<xsl:template match="VERB">
184
<tt><b><xsl:value-of select="./text()"/></b></tt>
187
<xsl:template match="EM">
188
<em><xsl:value-of select="./text()"/></em>
191
<xsl:template match="TT">
192
<tt><xsl:value-of select="./text()"/></tt>
195
<xsl:template match="BD"><b><xsl:value-of select="./text()"/></b></xsl:template>
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>
203
<xsl:template match="P"><p><xsl:apply-templates/></p></xsl:template>
205
<!-- simple paragraph -->
206
<xsl:template match="SP"><xsl:apply-templates/></xsl:template>
208
<xsl:template match="VERBATIM">
209
<pre><xsl:value-of select="self::node()"/></pre>