Browse Source

news rss feed now contains html complete news, not only the first paragraph ('teaser')

svn path=/trunk/; revision=19470
pull/8/head
nicoulas 9 years ago
parent
commit
ff3c443182
2 changed files with 6 additions and 2 deletions
  1. +2
    -2
      news/news.rss.xsl
  2. +4
    -0
      news/xhtml2xml.xsl

+ 2
- 2
news/news.rss.xsl View File

@@ -134,9 +134,9 @@

<!-- News body -->
<xsl:element name="description">
<xsl:value-of select="normalize-space(body)"/>
<xsl:copy-of select="body-complete/node()"/>
</xsl:element>
<!-- Link -->
<xsl:if test="link != ''">
<xsl:variable name="link">


+ 4
- 0
news/xhtml2xml.xsl View File

@@ -36,6 +36,10 @@
<xsl:value-of select="/html/body/p[@newsteaser]"/>
</xsl:element>
<xsl:element name="body-complete">
<xsl:copy-of select="/html/body/node()"/>
</xsl:element>
<xsl:element name="link">
<xsl:variable name="the_link">
<xsl:value-of select="/html/@link"/>


Loading…
Cancel
Save