mirror of
https://github.com/aureliendavid/rsspreview.git
synced 2025-08-22 19:28:39 +00:00
fix atom content/summary parsing (#14)
This commit is contained in:
parent
1e65cb4c25
commit
2d6ec3e206
@ -2,7 +2,7 @@
|
||||
|
||||
"manifest_version": 2,
|
||||
"name": "RSSPreview",
|
||||
"version": "2.3.2",
|
||||
"version": "2.4",
|
||||
"author": "Aurelien David",
|
||||
"homepage_url": "https://github.com/aureliendavid/rsspreview",
|
||||
|
||||
|
17
rss.xsl
17
rss.xsl
@ -53,9 +53,20 @@
|
||||
|
||||
<div class="lastUpdated"><xsl:value-of select="pubDate | atom:updated | rss1:pubDate" /></div>
|
||||
</h3>
|
||||
<div class="feedRawContent" desctype="{atom:content/@type}">
|
||||
<xsl:copy-of select="description | atom:summary | atom:content | rss1:description" />
|
||||
</div>
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="atom:summary">
|
||||
<div class="feedRawContent" desctype="{atom:summary/@type}">
|
||||
<xsl:copy-of select="atom:summary" />
|
||||
</div>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<div class="feedRawContent" desctype="{atom:content/@type}">
|
||||
<xsl:copy-of select="description | atom:content | rss1:description" />
|
||||
</div>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<div class="enclosures">
|
||||
<xsl:for-each select="enclosure | atom:link[@rel='enclosure'] | rss1:enclosure">
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user