diff options
Added alternate feed link and augmented entry links
* added title and type attributes to feed links in ATOM feed
* alternate feed link references the actual website
* added "rel=\"alternate\"" and title attribute to entry links
Diffstat (limited to 'source')
-rw-r--r-- | source/99_result/atom.xsl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/99_result/atom.xsl b/source/99_result/atom.xsl index c2b983e..5cbd5f3 100644 --- a/source/99_result/atom.xsl +++ b/source/99_result/atom.xsl @@ -25,7 +25,8 @@ <xsl:template match="datasource"> <feed> - <link href="{$url}/atom.xml" rel="self" /> + <link href="{$url}/atom.xml" rel="self" title="/home/adrian" type="application/atom+xml"/> + <link href="{$url}" rel="alternate" title="Start @ /home/adrian" type="text/xhtml"/> <id> <xsl:value-of select="concat($url, '/')"/> @@ -57,7 +58,7 @@ <title> <xsl:value-of select="title"/> </title> - <link> + <link rel="alternate" title="{title}"> <xsl:attribute name="href"> <xsl:value-of select="$url"/> <xsl:text>/article/</xsl:text> |