This repository has been archived by the owner on May 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathxom-breaks.xsl
110 lines (94 loc) · 3.27 KB
/
xom-breaks.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
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:tei="http://www.tei-c.org/ns/1.0" exclude-result-prefixes="tei">
<xsl:output method="html" omit-xml-declaration="yes" encoding="UTF-8" indent="yes" />
<xsl:variable name="themes_ajax_root">http://multepal.spanitalport.virgina.edu/api/temas/</xsl:variable>
<xsl:template match="/">
<xsl:text disable-output-escaping='yes'><!DOCTYPE html>
</xsl:text>
<html>
<head>
<title>Popol Vuh, Multepal Edition</title>
<link rel="stylesheet" type="text/css" href="xom-breaks.css"></link>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="xom-breaks.js"></script>
</head>
<body>
<h1>Breaks</h1>
<xsl:apply-templates select="//tei:text//tei:body"/>
</body>
</html>
</xsl:template>
<xsl:template match="tei:div[@xml:lang='quc']">
<div class="col quc" xml:lang="quc">
<b>K'iche'</b>
<xsl:apply-templates />
</div>
</xsl:template>
<xsl:template match="tei:div[@xml:lang='spa']">
<div class="col spa" xml:lan="spa">
<b>Espanol</b>
<xsl:apply-templates />
</div>
</xsl:template>
<xsl:template match="tei:p">
<span class="pilcrow">¶</span>
<xsl:apply-templates />
</xsl:template>
<xsl:template match="tei:note">
<span class="note {@rend}">
<xsl:apply-templates />
</span>
</xsl:template>
<xsl:template match="tei:rs">
<span class="rs {@rend}" data-ana="{@ana}">
<xsl:apply-templates />
</span>
</xsl:template>
<xsl:template match="tei:corr">
<span class="corr">
<xsl:apply-templates />
</span>
</xsl:template>
<xsl:template match="tei:lb">
<br class="lb break"/><span class="lb-num break {@rend}">
<xsl:value-of select="@n" />
</span>
</xsl:template>
<xsl:template match="tei:pc">
<span class="pc break">
<xsl:apply-templates />
</span>
</xsl:template>
<xsl:template match="tei:pb">
<hr />
<div class="pb break" name="{@xml:id}{@corresp}">
<a href="facsimiles/{@xml:id}{@corresp}.jpg" target="_blank">
<xsl:value-of select="@xml:id"/><xsl:value-of select="@corresp"/>
</a>
</div>
</xsl:template>
<xsl:template match="tei:hi">
<span class="hi {@rend}">
<xsl:apply-templates />
</span>
</xsl:template>
<xsl:template match="tei:num">
<span class="num {@rend}">
<xsl:apply-templates />
</span>
</xsl:template>
<xsl:template match="tei:del">
<span class="del {@rend}">
<xsl:apply-templates />
</span>
</xsl:template>
<xsl:template match="tei:corr">
<span class="corr {@rend}">
<xsl:apply-templates />
</span>
</xsl:template>
</xsl:stylesheet>