about summary refs log blame commit diff stats
path: root/derstandard.at/international/asien/hongkong/stylesheet_html.xml
blob: 30842e4e6ea85fa81c33809d1d8715b5d2de39ef (plain) (tree)
























                                                                                                                                                                 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" encoding="utf-8" indent="yes" />
  <xsl:template match="/main">
    <xsl:text disable-output-escaping="yes">&lt;!DOCTYPE html&gt;</xsl:text>
      <head>
        <title>derStandard.at - <xsl:value-of select="normalize-space(//header/h1)"/></title>
        <link rel="alternate" type="application/atom+xml" href="https://grafoo.tilde.institute/transfeed/derstandard.at/international/asien/hongkong/feed.xml" />
      </head>
      <body>
        <xsl:for-each select="//section">
          <article>
            <header>
              <a>
                <xsl:attribute name="href">https://www.derstandard.at<xsl:value-of select="article//a/@href"/></xsl:attribute>
                <h1><xsl:value-of select="normalize-space(article//header/h1[@class='teaser-title'])"/></h1>
              </a>
              <p><time><xsl:value-of select="normalize-space(article//header/time/@datetime)"/></time></p>
            </header>
            <p><xsl:value-of select="normalize-space(article//header/p[@class='teaser-subtitle'])"/></p>
          </article>
        </xsl:for-each>
      </body>
  </xsl:template>
</xsl:stylesheet>