-
Notifications
You must be signed in to change notification settings - Fork 19
/
feed_per_post.xsl
36 lines (33 loc) · 1.33 KB
/
feed_per_post.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
---
---
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:atom="http://www.w3.org/2005/Atom"
exclude-result-prefixes="atom">
<xsl:template match="/">
<html dir="rtl" xmlns="http://www.w3.org/1999/xhtml">
<body style="margin:auto;display:grid;width:540px;font-family:Arial;background-color:#EEEEEE;grid-gap:19px">
<h1><strong>دیدگاههای خوانندگان</strong></h1>
<xsl:apply-templates select="atom:feed/atom:entry"/>
<small>*اگه اینجا رو پیدا کردی واقعا باید بهت دستمریزاد گفت. تو عالی هستی!</small>
</body>
</html>
</xsl:template>
<xsl:template match="atom:entry">
<div xmlns="http://www.w3.org/1999/xhtml">
<div style="background-color:teal;color:white;padding:4px;">
<span style="font-weight:bold">
<strong><xsl:value-of select="atom:title"/></strong>
</span>
<xsl:text></xsl:text>
<xsl:value-of select="atom:author"/>
</div>
<div style="margin-right:20px;margin-bottom:1em;font-size:10pt">
<b><xsl:value-of select="atom:published"/></b>
<p><xsl:value-of select="atom:summary" disable-output-escaping="yes"/></p>
</div>
</div>
</xsl:template>
</xsl:stylesheet>