-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick.xml
More file actions
55 lines (48 loc) · 1.38 KB
/
quick.xml
File metadata and controls
55 lines (48 loc) · 1.38 KB
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
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<h1>The Ruin</h1>
<table>
<xsl:apply-templates select="node()"/>
</table>
</body>
</html>
</xsl:template>
<xsl:template match="poem">
<table>
<xsl:apply-templates select="node()"/>
</table>
</xsl:template>
<xsl:template match="l">
<tr>
<td style="padding-right:10px; color:gray">
<xsl:value-of select="@n"/>
</td>
<td style="color:white;">
<xsl:apply-templates select="node()"/>
</td>
</tr>
</xsl:template>
<xsl:template match="concrete-noun">
<strong style="color:black;">
<xsl:apply-templates select="node()"/>
</strong>
</xsl:template>
<xsl:template match="adjective">
<span style="color:green">
<xsl:apply-templates select="node()"/>
</span>
</xsl:template>
<xsl:template match="hyperbole">
<span style="background-color: rgba(250,20,20,0.3)">
<xsl:apply-templates select="node()"/>
</span>
</xsl:template>
<xsl:template match="hard-word">
<a style="background-color: rgba(20,250,20,0.3)" href="https://www-oed-com.myaccess.library.utoronto.ca/search?q={current()}">
<xsl:apply-templates select="node()"/>
</a>
</xsl:template>
</xsl:stylesheet>