Skip to main content

This CGIT instance is deprecated, and repositories have been moved to Gitlab or Github. See the repository descriptions for specific locations.

summaryrefslogtreecommitdiffstats
blob: 5b824e5035104dfb2b319a6ff34ac40f5aa07b8c (plain) (blame)
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
	version="1.0">

	<xsl:variable name="root">
		<xsl:choose>
			<xsl:when test="/html/head/meta[@name='root']/@content">
				<xsl:value-of select="/html/head/meta[@name='root']/@content" />
			</xsl:when>
			<xsl:otherwise>
				<xsl:text>../..</xsl:text>
			</xsl:otherwise>
		</xsl:choose>
	</xsl:variable>

	<xsl:template match="/">
		<xsl:apply-templates />
	</xsl:template>

	<xsl:template match="html">
		<html>
			<head>
				<meta
					content="text/html; charset=iso-8859-1"
					http-equiv="Content-Type" />
				<link
					type="text/css"
					href="{$root}/apistyles.css"
					rel="stylesheet" />
				<xsl:apply-templates select="head/title" />
			</head>
			<body> 
				<xsl:apply-templates
					select="body/*"
					mode="body" />
			</body>
		</html>
	</xsl:template>

	<xsl:template
		match="h1"
		mode="banner">
		<table
			border="0"
			cellpadding="2"
			cellspacing="5"
			width="100%">
			<tbody>
				<tr>
					<td
						align="left"
						width="60%">
						<font class="indextop">
							<xsl:value-of select="." />
						</font>
						<br />
						<font class="indexsub">
							<xsl:value-of select="/html/head/title" />
						</font>
					</td>
					<td width="40%">
						<img
							src="{$root}/overview/Idea.jpg"
							align="middle"
							height="86"
							hspace="50"
							width="120" />
					</td>
				</tr>
			</tbody>
		</table>
	</xsl:template>

	<xsl:template
		match="h1"
		mode="body" />

	<xsl:template
		match="h2"
		mode="body">

		<table
			border="0"
			cellpadding="2"
			cellspacing="5"
			width="100%">
			<tbody>
				<tr>
					<td
						colspan="2"
						align="left"
						bgcolor="#0080c0"
						valign="top">
						<b>
							<font
								color="#ffffff"
								face="Arial,Helvetica">
								<xsl:apply-templates />
							</font>
						</b>
					</td>
				</tr>
			</tbody>
		</table>
	</xsl:template>

	<xsl:template
		match="h3"
		mode="body">
		<img
			src="{$root}/images/Adarrow.gif"
			border="0"
			height="16"
			width="16" />
		<xsl:apply-templates />
	</xsl:template>

	<xsl:template
		match="*"
		mode="body">

		<xsl:copy>
			<xsl:apply-templates select="*|@*|text()" />
		</xsl:copy>
	</xsl:template>

	<xsl:template match="*|@*|text()">
		<xsl:copy>
			<xsl:apply-templates select="*|@*|text()" />
		</xsl:copy>
	</xsl:template>

</xsl:stylesheet>

Back to the top