-
Notifications
You must be signed in to change notification settings - Fork 3
/
drupal.xslt
78 lines (78 loc) · 2 KB
/
drupal.xslt
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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<title>Gedit Drupal Snippets</title>
<style type="text/css">
body {
width: 970px;
margin: auto;
}
h1 {
text-align: center;
padding: 30px;
}
tr th {
border-bottom: 2px solid black;
}
tr td {
vertical-align: top;
border-bottom: 1px dotted gray;
padding-top: 10px;
}
.code pre {
padding: 5px;
width: 600px;
overflow: auto;
background-color:#EDF5FD;
border-left:3px solid #AFD2F0;
margin-top: 0px;
padding:10px 10px 10px 20px
}
.tags {
font-weight: 800;
}
.tags span {
background-color:#EDF5FD;
padding:6px;
border: 1px dotted #AFD2F0;
margin-right: 10px;
text-align: center;
display: block;
}
.footer, .footer a, .footer a:visited {
text-align: center;
color: #cccccc;
margin: 15px;
font-size: 0.8em;
}
</style>
</head>
<body>
<h1>List of Gedit-Drupal Snippet</h1>
<table>
<thead>
<tr>
<th>Shortcut</th>
<th>Description</th>
<th>Code</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="snippets/snippet">
<xsl:sort select="tag"/>
<xsl:sort select="description"/>
<tr>
<td class="tags"><span><xsl:value-of select="tag"/></span></td>
<td class="desc"><xsl:value-of select="description"/></td>
<td class="code"><pre><xsl:value-of select="text" /></pre></td>
</tr>
</xsl:for-each>
</tbody>
</table>
<div class="footer"><a href="http://mavimo.org">Marco Vito Moscaritolo</a></div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>