Mercurial > hg > index.fcgi > www > www-1
changeset 11:ab0455f2a832
myrss/step1.xsl: parse only link rel="alternate" for Atom feeds
author | paulo@twcdns.fastsearch.net |
---|---|
date | Tue, 14 Sep 2010 23:32:09 -0700 |
parents | 23235139f34d |
children | 2e8351e61e8f |
files | myrss/step1.xsl |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/myrss/step1.xsl Mon Sep 13 01:46:43 2010 -0700 1.2 +++ b/myrss/step1.xsl Tue Sep 14 23:32:09 2010 -0700 1.3 @@ -10,11 +10,11 @@ 1.4 <xsl:template match="/a:feed"> 1.5 <site> 1.6 <title><xsl:value-of select="a:title"/></title> 1.7 -<link><xsl:value-of select="a:link/@href"/></link> 1.8 +<link><xsl:value-of select="a:link[@rel='alternate']/@href"/></link> 1.9 <xsl:for-each select="a:entry"> 1.10 <headline> 1.11 <title><xsl:value-of select="a:title"/></title> 1.12 - <link><xsl:value-of select="a:link/@href"/></link> 1.13 + <link><xsl:value-of select="a:link[@rel='alternate']/@href"/></link> 1.14 </headline> 1.15 </xsl:for-each> 1.16 </site>