blob: bfab3ba1b30a6000badcd845165c504e8c9e9a7b (
plain)
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
|
<?xml version="1.0"?>
<!DOCTYPE xsl:stylesheet
[
<!ENTITY % site-entities SYSTEM "entities.site">
%site-entities;
]>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- transform the menu using the site entity for links -->
<xsl:template match="menu">
<!-- actual menu -->
<table border="0" width="156" cellpadding="0" cellspacing="0">
<tr><td><img src="&site;/images/backslash.png" alt="" height="48" width="100%" /></td></tr>
<tr>
<td bgcolor="#666666" valign="top">
<!-- table inside the graphics for menu items -->
<table border="0" cellpadding="2" cellspacing="0">
<tr><td colspan="2"><img src="&site;/images/1x1.gif" alt="" border="0" width="2" height="2" /></td></tr>
<xsl:for-each select="item">
<tr>
<xsl:choose>
<xsl:when test="@href = ''">
<td width="150" />
</xsl:when>
<xsl:otherwise>
<td width="150" align="left">
<xsl:attribute name="class">
<xsl:value-of select="@class" />
</xsl:attribute>
<xsl:choose>
<xsl:when test="substring(@href, 1, 7) = 'http://'">
<b><a href="{@href}">
<xsl:attribute name="class">
<xsl:value-of select="@class" />
</xsl:attribute>
<xsl:value-of select="." /></a></b>
</xsl:when>
<xsl:otherwise>
<b><a href="&site;{@href}" class="gstnavside">
<xsl:attribute name="class">
<xsl:value-of select="@class" />
</xsl:attribute>
<xsl:value-of select="." /></a></b>
</xsl:otherwise>
</xsl:choose>
</td>
</xsl:otherwise>
</xsl:choose>
<td><img src="&site;/images/1x1.gif" border="0" width="2" height="2" alt="" /></td>
</tr>
<tr><td colspan="3"><img src="&site;/images/1x1.gif" border="0" width="2" height="2" alt="" /></td></tr>
</xsl:for-each>
</table>
</td>
</tr>
<tr><td><img src="&site;/images/slash.png" alt="" height="41" width="100%" /></td></tr>
</table>
</xsl:template>
</xsl:stylesheet>
|