1
0
mirror of https://github.com/aureliendavid/rsspreview.git synced 2025-08-23 03:38:44 +00:00

atom: prioritize link rel alternate to entry links (#40)

This commit is contained in:
Aurelien David 2019-06-27 00:05:32 +02:00
parent 6f6f53ee58
commit 4199255108

View File

@ -42,7 +42,12 @@
<h3> <h3>
<xsl:choose> <xsl:choose>
<xsl:when test="link | atom:link/@href | atom03:link/@href | rss1:link"> <xsl:when test="atom:link[@rel='alternate']/@href | atom03:link[@rel='alternate']/@href">
<a href="{atom:link[@rel='alternate']/@href | atom03:link[@rel='alternate']/@href}" target="_blank">
<span class="entrytitle"><xsl:value-of select="atom:title | atom03:title" /></span>
</a>
</xsl:when>
<xsl:when test="link | atom:link/@href | atom:link/@href | atom03:link/@href | rss1:link">
<a href="{link | atom:link/@href | atom03:link/@href | rss1:link}" target="_blank"> <a href="{link | atom:link/@href | atom03:link/@href | rss1:link}" target="_blank">
<span class="entrytitle"><xsl:value-of select="title | atom:title | atom03:title | rss1:title" /></span> <span class="entrytitle"><xsl:value-of select="title | atom:title | atom03:title | rss1:title" /></span>
</a> </a>