about summary refs log tree commit diff stats
path: root/derstandard.at/international/asien/hongkong
diff options
context:
space:
mode:
authorManuel Graf <postmaster@grafoo.at>2021-01-10 23:06:29 +0100
committerManuel Graf <postmaster@grafoo.at>2021-01-10 23:39:52 +0100
commit7cc673178f3c44d2509d823ea19171e2288308f9 (patch)
tree90d32b1c48f36c4955617615896eeff533bf947b /derstandard.at/international/asien/hongkong
downloadtransfeed-7cc673178f3c44d2509d823ea19171e2288308f9.tar.gz
Initial commit
Diffstat (limited to 'derstandard.at/international/asien/hongkong')
-rw-r--r--derstandard.at/international/asien/hongkong/stylesheet.xml22
1 files changed, 22 insertions, 0 deletions
diff --git a/derstandard.at/international/asien/hongkong/stylesheet.xml b/derstandard.at/international/asien/hongkong/stylesheet.xml
new file mode 100644
index 0000000..4f4ac01
--- /dev/null
+++ b/derstandard.at/international/asien/hongkong/stylesheet.xml
@@ -0,0 +1,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>