-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsquad.xsl
91 lines (81 loc) · 3.08 KB
/
squad.xsl
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
<?xml version="1.0" encoding="ISO-8859-1"?>
<!-- Transformation XSLT-->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<!-- Modèles Implicites source: http://www.grappa.univ-lille3.fr/~jousse/enseignement/XML_XSLT/xslt.html -->
<xsl:template match="text()"><xsl:value-of select="."/></xsl:template>
<xsl:template match="*"><xsl:apply-templates/></xsl:template>
<xsl:template match="/">
<!--Fichier XSL Template pour le squad.xml d'ArmA2 réalisé par KissDavid le 11.07.09 -->
<!-- HTML -->
<html>
<head>
<title><xsl:value-of select="/squad/@nick"/></title>
<link rel="stylesheet" type="text/css" href="squad.css" title="CSS du squad.xsl" />
</head>
<body>
<div id="cadre">
<!-- Menu -->
<div id="menu">
<img id="logo" src="logo.png" alt="arma3squad"/>
<h1><xsl:value-of select="/squad/name"/></h1>
<p><em>Tag : </em>[<xsl:value-of select="/squad/@nick"/>]</p>
<p><em>Email : </em><xsl:value-of select="/squad/email"/></p>
<p><em>Web Site : </em><a><xsl:attribute name="href"><xsl:value-of select="/squad/web"/></xsl:attribute><xsl:value-of select="/squad/web"/></a></p>
<p><em>Title : </em><xsl:value-of select="/squad/title"/></p>
</div>
<!-- Liste des membres -->
<div id="liste">
<table class="fiche">
<tr>
<th>队员</th>
<th>队员 ID</th>
<th>姓名</th>
<th>邮件地址</th>
<th>QQ</th>
</tr>
<xsl:for-each select="/squad/member">
<tr>
<!-- Alternance des couleurs (Nombre pair/ impair)-->
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="position() mod 2 = 0">impair</xsl:when>
<xsl:otherwise>pair</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<td class="nick" rowspan="2"><xsl:value-of select="@nick"/></td>
<td class="id"><xsl:value-of select="@id"/></td>
<td class="name"><xsl:value-of select="name"/></td>
<td class="email">
<a>
<xsl:attribute name="href">mailto:<xsl:value-of select="email"/></xsl:attribute>
<xsl:value-of select="email"/>
</a>
</td>
<td class="icq"><xsl:value-of select="icq"/></td>
</tr>
<tr>
<!-- Alternance des couleurs (Nombre pair/ impair)-->
<xsl:attribute name="class">
<xsl:choose>
<xsl:when test="position() mod 2 = 0">impair</xsl:when>
<xsl:otherwise>pair</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<td class="remark" colspan="4"><strong>注释 : </strong><xsl:value-of select="remark"/></td>
</tr>
</xsl:for-each>
</table>
</div>
<!-- Liste des membres -->
<div id="footer">
<p id="copyright"> ?The logo ArmA 3 and Wallpaper are the property of Bohemia Interactive (http://www.bistudio.com/) - Available in the website ARMA 3<br/>
Template for the "squad.xml" of ArmA 3 - Realized by DIG GAMES - 2015.4.8<br/>
From more go to here: <a href="http://www.diguo520.com" target="_blank" title="diguo520.com">SteamID:DIG GAMES</a>
</p>
</div>
</div>
</body>
</html>
<!-- Fin HTML -->
</xsl:template>
</xsl:stylesheet>