-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathtournaments.xsl
More file actions
81 lines (75 loc) · 4.51 KB
/
Copy pathtournaments.xsl
File metadata and controls
81 lines (75 loc) · 4.51 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xlink="http://www.w3.org/1999/xlink"
exclude-result-prefixes="xlink">
<xsl:output method="html"/>
<xsl:template match="/">
<html>
<head>
<title>Tournaments Information</title>
<style>
@font-face {
font-family: "SlateForOnePlus-Bold";
src: url("Fonts/SlateForOnePlus-Bold.ttf");
}
@font-face {
font-family: "SlateForOnePlus-Medium";
src: url("Fonts/SlateForOnePlus-Medium.ttf");
}
@font-face {
font-family: "OpenSans-ExtraBold";
src: url("Fonts/OpenSans-ExtraBold.ttf");
}
</style>
</head>
<body style="font-family: SlateForOnePlus-Medium;">
<h1 align="center" font-family="SlateForOnePlus-Bold">Upcoming Tournaments</h1>
<xsl:value-of select="/tournaments/tournament/navpage/@xlink:href" xmlns:x-link="http://www.w3.org/1999/xlink"/>
<xsl:for-each select = "/tournaments/*">
<div style="background-color:#a8a58aAA; padding:15px; border-radius:5px; margin-left: 190px; margin-right: 190px; margin-bottom: 30px;">
<div style="background-color:#61300b ;color:white;padding:4px; text-align: center;">
<span style="font-weight:bold; font-size: 24px;"><xsl:value-of select="title"/></span> <!--Accessing by specifying note location-->
</div>
<div style="margin-bottom:1em;font-size:10pt;
background-color:#98957aCC; border-bottom-right-radius:10px;
border-bottom-left-radius:10px; padding:20px;">
<p>
<xsl:if test="image">
<center>
<img style="width:500px; padding-bottom: 10px;">
<xsl:attribute name="src"> <!--Accessing by specifying node type-->
../Images/tournament_posters/<xsl:value-of select="image"/>
</xsl:attribute>
</img>
</center>
</xsl:if>
<span style="font-size: 18px; padding: 3px;"><xsl:value-of select="description"/></span>
</p>
</div>
</div>
</xsl:for-each>
<h1 align="center" font-family="SlateForOnePlus-Bold">Trending All over the world</h1>
<div style="background-color:#a8a58aAA; padding:15px; border-radius:5px; margin-left: 190px; margin-right: 190px; margin-bottom: 30px;">
<div style="background-color:#61300b ;color:white;padding:4px; text-align: center;">
<span style="font-weight:bold; font-size: 24px;"><xsl:value-of select="/tournaments/tournament[6]/title"/></span> <!--Accessing by specifying the predicates-->
</div>
<div style="margin-bottom:1em;font-size:10pt;
background-color:#98957aCC; border-bottom-right-radius:10px;
border-bottom-left-radius:10px; padding:20px;">
<p>
<xsl:if test="/tournaments/tournament[6]/image">
<center>
<img style="width:500px; padding-bottom: 10px;">
<xsl:attribute name="src"> <!--Accessing by specifying node type-->
../Images/tournament_posters/<xsl:value-of select="/tournaments/tournament[6]/image"/>
</xsl:attribute>
</img>
</center>
</xsl:if>
</p>
</div>
</div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>