Mercurial > hg > index.fcgi > www > www-1
comparison myrss/step1.xsl @ 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 | 4d7f45e51e8e |
children | e92b8e5b8fd7 |
comparison
equal
deleted
inserted
replaced
1:02822ece0e89 | 2:6c6cacb81f62 |
---|---|
8 | 8 |
9 <!-- Atom --> | 9 <!-- Atom --> |
10 <xsl:template match="/a:feed"> | 10 <xsl:template match="/a:feed"> |
11 <site> | 11 <site> |
12 <title><xsl:value-of select="a:title"/></title> | 12 <title><xsl:value-of select="a:title"/></title> |
13 <link><xsl:value-of select="a:link/@href"/></link> | 13 <link><xsl:value-of select="a:link[@rel='alternate']/@href"/></link> |
14 <xsl:for-each select="a:entry"> | 14 <xsl:for-each select="a:entry"> |
15 <headline> | 15 <headline> |
16 <title><xsl:value-of select="a:title"/></title> | 16 <title><xsl:value-of select="a:title"/></title> |
17 <link><xsl:value-of select="a:link/@href"/></link> | 17 <link><xsl:value-of select="a:link[@rel='alternate']/@href"/></link> |
18 </headline> | 18 </headline> |
19 </xsl:for-each> | 19 </xsl:for-each> |
20 </site> | 20 </site> |
21 </xsl:template> | 21 </xsl:template> |
22 | 22 |