/
StyleSheet_Equity.xsl
72 lines (35 loc) · 1.7 KB
/
StyleSheet_Equity.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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:strip-space elements="*"/>
<xsl:output method="html" version="4.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html>
<body>
<h2>
<xsl:value-of
select="teiCorpus/teiHeader/fileDesc/sourceDesc/biblFull/titleStmt/title"/>
</h2>
<h3>Page <xsl:value-of
select="teiCorpus/TEI/teiHeader/fileDesc/sourceDesc/bibl/biblScope"/></h3>
<xsl:for-each select="teiCorpus/TEI/text/body/p">
<p><xsl:apply-templates/></p>
</xsl:for-each>
<h3>Key:</h3>
<ul>
<li style="color:blue;text-decoration:none;">Individual</li>
<li style="color:#00CC00;text-decoration:none;">Location</li>
<li style="color:red;text-decoration:none;">Claim</li>
</ul>
</body>
</html>
</xsl:template>
<xsl:template match="persName">
<a style="color:blue;text-decoration:none;" href="{@ref}" title="{@key}
({@from}-{@to})
{@role}"><xsl:value-of select="."/></a>
</xsl:template>
<xsl:template match="placeName">
<a style="color:#00CC00;text-decoration:none;" href="{@ref}" title="{@key}"><xsl:value-of select="."/></a>
</xsl:template>
<xsl:template match="interp">
<a style="color:red;text-decoration:none;" title="{@key}

{@n}, available at {@ref}"><xsl:value-of select="."/></a>
</xsl:template>
</xsl:stylesheet>