mirror of
https://github.com/aureliendavid/rsspreview.git
synced 2025-08-22 11:18:37 +00:00
atom: prioritize link rel alternate to entry links (#40)
This commit is contained in:
parent
6f6f53ee58
commit
4199255108
7
rss.xsl
7
rss.xsl
@ -42,7 +42,12 @@
|
||||
|
||||
<h3>
|
||||
<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">
|
||||
<span class="entrytitle"><xsl:value-of select="title | atom:title | atom03:title | rss1:title" /></span>
|
||||
</a>
|
||||
|
Loading…
Reference in New Issue
Block a user