-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfeed.xslt.xml
64 lines (64 loc) · 2.67 KB
/
feed.xslt.xml
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
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="3.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
<xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
<xsl:template match="/">
<html lang="zh" xmlns="http://www.w3.org/1999/xhtml" class="h-100">
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>
<xsl:value-of select="/rss/channel/title"/>
RSS Feed
</title>
<link rel="stylesheet" href="/css/main.css"/>
</head>
<body class="d-flex flex-column h-100">
<header class="container sticky-top p-3">
<div class="card shadow-sm">
<div class="card-body">
<h5 class="card-title">RSS Feed</h5>
<div class="card-text">
<h6><xsl:value-of select="/rss/channel/title"/></h6>
<div class="text-body-tertiary">Generator:<xsl:value-of select="/rss/channel/generator"/></div>
<div class="text-body-tertiary">LastBuildDate:<xsl:value-of select="/rss/channel/lastBuildDate"/></div>
<a hreflang="en" class="card-link py-3">
<xsl:attribute name="href">
<xsl:value-of select="/rss/channel/link"/>
</xsl:attribute>
Visit Website →
</a>
</div>
</div>
</div>
</header>
<main class="container">
<ul class="list-group list-group-flush py-4 ms-0">
<xsl:for-each select="/rss/channel/item">
<li class="list-group-item list-group-item-action">
<small class="text-body-tertiary">
<xsl:value-of select="pubDate"/>
</small>
<div class="d-flex w-100 justify-content-between">
<a hreflang="en" class="stretched-link">
<xsl:attribute name="href">
<xsl:value-of select="link"/>
</xsl:attribute>
<xsl:value-of select="title"/>
</a>
</div>
</li>
</xsl:for-each>
</ul>
</main>
<footer class="footer mt-auto py-3 bg-white border-top">
<div class="container">
<span>
<xsl:value-of select="/rss/channel/description"/>
</span>
</div>
</footer>
</body>
</html>
</xsl:template>
</xsl:stylesheet>