-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathONDC.xsl
117 lines (95 loc) · 5.01 KB
/
ONDC.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
110
111
112
113
114
115
116
117
<xsl:stylesheet xmlns="http://www.w3.org/1999/xhtml"
xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:html="http://www.w3.org/1999/xhtml"
xmlns:rng="http://relaxng.org/ns/structure/1.0"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns:teix="http://www.tei-c.org/ns/Examples"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
exclude-result-prefixes="a fo rng tei teix"
version="2.0">
<xsl:template match="/">
<html>
<head>
<meta charset="utf-8" />
<title> <xsl:value-of select="TEI/teiHeader/fileDesc/titleStmt/title[@xml:lang='eng']"/>
</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport" />
<meta content="" name="keywords" />
<meta content="" name="description" />
<!-- Favicons -->
<link href="img/favicon.png" rel="icon" />
<link href="img/apple-touch-icon.png" rel="apple-touch-icon" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css?family=Raleway:400,700,900|Lato:400,900" rel="stylesheet" />
<!-- Bootstrap CSS File -->
<link href="lib/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
<!-- Libraries CSS Files -->
<link href="lib/font-awesome/css/font-awesome.min.css" rel="stylesheet" />
<link href="lib/prettyphoto/css/prettyphoto.css" rel="stylesheet" />
<link href="lib/hover/hoverex-all.css" rel="stylesheet" />
<!-- Main Stylesheet File -->
<link href="css/style.css" rel="stylesheet" />
<link rel="stylesheet" href="dist/leipzig.css" />
</head>
<style>
.div-1 {
background-color: #EBEBEB;
}
.div-2 {
background-color: #9acd32;
}
.div-3 {
background-color: #F5F5F5;
}
</style>
<body style="background-color:#EBEBEB">
<div class="div-1"><h3>Old Nubian Digital Corpus Project (funded by JSPS KAKENHI) / 古ヌビア語コーパス・プロジェクト(JSPS科研費)</h3></div>
<div>
<h1><xsl:value-of select="TEI/teiHeader/fileDesc/titleStmt/title[@xml:lang='eng']"/><br/><small><xsl:value-of select="TEI/teiHeader/fileDesc/titleStmt/title[@xml:lang='jpn']"/></small></h1>
<h2>by <bold><xsl:value-of select="TEI/teiHeader/fileDesc/titleStmt/author[@xml:lang='eng']"/> (<xsl:value-of select="TEI/teiHeader/fileDesc/titleStmt/author[@xml:lang='jpn']"/>)</bold></h2>
<table border="1">
<tr bgcolor="#9acd32">
<th style="text-align:left">Name</th>
<th style="text-align:left">Resposibility</th>
</tr>
<xsl:for-each select="TEI/teiHeader/fileDesc/titleStmt/respStmt">
<tr>
<th style="text-align:left"><xsl:value-of select="name"/></th>
<th style="text-align:left"><xsl:value-of select="resp"/></th>
</tr>
</xsl:for-each>
</table>
</div>
<xsl:for-each select="TEI/text/body/ab">
<div class="div-1">
<div id="oldnubian" class="div-3">
<p><big><xsl:value-of select="s[@type='orig']"/></big></p>
<p><big><xsl:value-of select="s[@type='parse']"/></big></p>
<p><xsl:value-of select="s[@type='roman']"/></p>
<p><xsl:value-of select="s[@type='gloss']"/></p>
<p><xsl:value-of select="s[@type='trans']"/></p>
</div>
<br/>
</div>
</xsl:for-each>
<!-- JavaScript Libraries -->
<script src="lib/jquery/jquery.min.js"></script>
<script src="lib/bootstrap/js/bootstrap.min.js"></script>
<script src="lib/php-mail-form/validate.js"></script>
<script src="lib/prettyphoto/js/prettyphoto.js"></script>
<script src="lib/isotope/isotope.min.js"></script>
<script src="lib/hover/hoverdir.js"></script>
<script src="lib/hover/hoverex.min.js"></script>
<script src="dist/leipzig.js"></script>
<script>
document.addEventListener('DOMContentLoaded', function() {
Leipzig('#oldnubian', { firstLineOrig: true }).gloss();
});
</script>
<!-- Template Main Javascript File -->
<script src="js/main.js"></script>
</body>
</html>
</xsl:template>
</xsl:stylesheet>