blob: 5b824e5035104dfb2b319a6ff34ac40f5aa07b8c [file] [log] [blame]
lmandel3a4ece92005-07-11 20:05:31 +00001<?xml version="1.0" encoding="utf-8"?>
2<xsl:stylesheet
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 version="1.0">
5
6 <xsl:variable name="root">
7 <xsl:choose>
8 <xsl:when test="/html/head/meta[@name='root']/@content">
9 <xsl:value-of select="/html/head/meta[@name='root']/@content" />
10 </xsl:when>
11 <xsl:otherwise>
12 <xsl:text>../..</xsl:text>
13 </xsl:otherwise>
14 </xsl:choose>
15 </xsl:variable>
16
17 <xsl:template match="/">
18 <xsl:apply-templates />
19 </xsl:template>
20
21 <xsl:template match="html">
22 <html>
23 <head>
24 <meta
25 content="text/html; charset=iso-8859-1"
26 http-equiv="Content-Type" />
27 <link
28 type="text/css"
29 href="{$root}/apistyles.css"
30 rel="stylesheet" />
31 <xsl:apply-templates select="head/title" />
32 </head>
33 <body>
34 <xsl:apply-templates
35 select="body/*"
36 mode="body" />
37 </body>
38 </html>
39 </xsl:template>
40
41 <xsl:template
42 match="h1"
43 mode="banner">
44 <table
45 border="0"
46 cellpadding="2"
47 cellspacing="5"
48 width="100%">
49 <tbody>
50 <tr>
51 <td
52 align="left"
53 width="60%">
54 <font class="indextop">
55 <xsl:value-of select="." />
56 </font>
57 <br />
58 <font class="indexsub">
59 <xsl:value-of select="/html/head/title" />
60 </font>
61 </td>
62 <td width="40%">
63 <img
64 src="{$root}/overview/Idea.jpg"
65 align="middle"
66 height="86"
67 hspace="50"
68 width="120" />
69 </td>
70 </tr>
71 </tbody>
72 </table>
73 </xsl:template>
74
75 <xsl:template
76 match="h1"
77 mode="body" />
78
79 <xsl:template
80 match="h2"
81 mode="body">
82
83 <table
84 border="0"
85 cellpadding="2"
86 cellspacing="5"
87 width="100%">
88 <tbody>
89 <tr>
90 <td
91 colspan="2"
92 align="left"
93 bgcolor="#0080c0"
94 valign="top">
95 <b>
96 <font
97 color="#ffffff"
98 face="Arial,Helvetica">
99 <xsl:apply-templates />
100 </font>
101 </b>
102 </td>
103 </tr>
104 </tbody>
105 </table>
106 </xsl:template>
107
108 <xsl:template
109 match="h3"
110 mode="body">
111 <img
112 src="{$root}/images/Adarrow.gif"
113 border="0"
114 height="16"
115 width="16" />
116 <xsl:apply-templates />
117 </xsl:template>
118
119 <xsl:template
120 match="*"
121 mode="body">
122
123 <xsl:copy>
124 <xsl:apply-templates select="*|@*|text()" />
125 </xsl:copy>
126 </xsl:template>
127
128 <xsl:template match="*|@*|text()">
129 <xsl:copy>
130 <xsl:apply-templates select="*|@*|text()" />
131 </xsl:copy>
132 </xsl:template>
133
134</xsl:stylesheet>