aboutsummaryrefslogtreecommitdiffstats
path: root/data/starthere/section.xsl
blob: a734ce7087c51d8f6a29c5284e2e15b8f7fd1eeb (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
<?xml version="1.0"?>
<xsl:stylesheet
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
        version="1.0">

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

<xsl:template match="section">
<html>
  <head>
  <xsl:apply-templates/>
  <style type="text/css">
    body {
        margin-left: 150;
        margin-right: 150;
        background: <xsl:value-of select="@bg"/>;
        color:      <xsl:value-of select="@text"/>;
        font-family: Verdana, Helvetica, Arial, sans-serif; 
        font-size: 1.0em; 
    }

    div.topbar {
        height: 25px; 
        padding: 7px; 
        color: <xsl:value-of select="@title"/>;
        background-color: <xsl:value-of select="@title-bg"/>;
        font-weight: bold;
        margin-bottom: 50;
    }

    div.topbar a {
        margin-right: 15;
        font-size: 1.4em;
        font-weight: bold;
        color: <xsl:value-of select="@title"/>;
    }

    h2 {
        color: <xsl:value-of select="@headings"/>;
        font-size: 1.2em;
    }

    a {
        color: <xsl:value-of select="@link"/>
    }

    a.visited {
        color: <xsl:value-of select="@link"/>
    }
  </style>
  </head>
  <body>
    <xsl:apply-templates/>
  </body>
</html>
</xsl:template>

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

<xsl:template match="content">
<div class="body">
  <xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="bar">
<div class="topbar">
  <xsl:apply-templates/>
</div>
</xsl:template>

<xsl:template match="item">
<a href="{@section}">
  <xsl:apply-templates/>
</a>
</xsl:template>

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

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

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

<xsl:template match="action">
<a href="home:{@id}?{@param}">
  <xsl:apply-templates/>
</a><br/>
</xsl:template>

<xsl:template match="smartbookmark">
<a type="text/smartbookmark" href="{@normal}" rel="{@smart}" title="{@title}">
  <xsl:apply-templates/>
</a><br/>
</xsl:template>

</xsl:stylesheet>