blob: 4f4ac010b59c40c9e7d207a5f9472fe66b5f6ff0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/main">
<feed xmlns="http://www.w3.org/2005/Atom">
<id>https://grafoo.tilde.institute/transfeed/derstandard.at/international/asien/hongkong/feed.xml</id>
<title>derStandard.at - <xsl:value-of select="normalize-space(//header/h1)"/></title>
<!-- <title><xsl:value-of select="normalize-space(//head//meta[@name='title']/@content)"/></title> -->
<updated><xsl:value-of select="normalize-space(//div[@class='lastmodified']//time/@datetime)"/></updated>
<icon>https://at.staticfiles.at/img/appicons/dst-60@2x-14f7371c73.png</icon>
<logo>https://at.staticfiles.at/img/meta/meta_image_1200x630-4d0796cf00.png</logo>
<xsl:for-each select="//section">
<entry>
<id><xsl:value-of select="generate-id(article)"/></id>
<title><xsl:value-of select="normalize-space(article//header/h1[@class='teaser-title'])"/></title>
<updated><xsl:value-of select="normalize-space(article//header/time/@datetime)"/></updated>
<link rel="alternate"><xsl:attribute name="href">https://www.derstandard.at<xsl:value-of select="article//a/@href"/></xsl:attribute></link>
<summary><xsl:value-of select="normalize-space(article//header/p[@class='teaser-subtitle'])"/></summary>
</entry>
</xsl:for-each>
</feed>
</xsl:template>
</xsl:stylesheet>
|