-
Notifications
You must be signed in to change notification settings - Fork 11
/
unicode.xsl
109 lines (98 loc) · 2.55 KB
/
unicode.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="charlist">
<html>
<head>
<title>unicode.xml</title>
<style>
div.tableContainer {
width: 95%; /* table width will be 99% of this*/
height: 600px; /* must be greater than tbody*/
overflow: auto;
margin: 0 auto;
}
table {
width: 99%; /*100% of container produces horiz. scroll in Mozilla*/
border: none;
background-color: #f7f7f7;
}
table>tbody { /* child selector syntax which IE6 and older do not support*/
overflow: auto;
height: 570px;
overflow-x: hidden;
}
thead tr {
position:relative;
top: expression(offsetParent.scrollTop); /*IE5+ only*/
}
thead td, thead th {
text-align: center;
font-size: 14px;
background-color: oldlace;
color: steelblue;
font-weight: bold;
border-top: solid 1px #d8d8d8;
}
td {
color: #000;
padding-right: 2px;
font-size: 12px;
text-align: left;
border-bottom: solid 1px #d8d8d8;
border-left: solid 1px #d8d8d8;
}
tfoot td {
text-align: center;
font-size: 11px;
font-weight: bold;
background-color: papayawhip;
color: steelblue;
border-top: solid 2px slategray;
}
td:last-child {padding-right: 20px;} /*prevent Mozilla scrollbar from hiding cell content*/
</style>
</head>
<body>
<div class="tableContainer">
<table>
<thead>
<tr class="head">
<td>ID</td>
<td>UNICODE DESCRIPTION</td><td>Entity</td><td>mode</td><td>type</td><td>latex</td>
<td>category</td>
<td>op dict</td>
</tr>
</thead>
<tbody>
<xsl:apply-templates select="character"/>
</tbody>
</table>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="character">
<tr>
<td><xsl:value-of select="@id"/></td>
<td><xsl:value-of select="description"/></td>
<td><xsl:if test="not(entity)"> </xsl:if>
<xsl:for-each select="entity/@id[not(.=../preceding-sibling::entity/@id)]">
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
</xsl:for-each></td>
<td><xsl:if test="not(@mode)"> </xsl:if><xsl:value-of select="@mode"/></td>
<td><xsl:if test="not(@type)"> </xsl:if><xsl:value-of select="@type"/></td>
<td><xsl:if test="not(latex)"> </xsl:if><xsl:value-of select="latex"/></td>
<td><xsl:if test="not(unicodedata/@category)"> </xsl:if><xsl:value-of select="unicodedata/@category"/></td>
<td><xsl:if test="not(operator-dictionary)"> </xsl:if>
<xsl:for-each select="operator-dictionary/@form">
<xsl:value-of select="."/>
<xsl:text> </xsl:text>
</xsl:for-each>
<xsl:for-each select="operator-dictionary/@*[.='true']">
<xsl:value-of select="name()"/>
<xsl:text> </xsl:text>
</xsl:for-each>
</td>
</tr>
</xsl:template>
</xsl:stylesheet>