Mercurial > hg > index.fcgi > www > www-1
comparison myrss/step1.xsl @ 6:2be1a035d725
add myrss/step1.xsl
author | paulo@twcdns.fastsearch.net |
---|---|
date | Sat, 11 Sep 2010 02:49:56 -0700 |
parents | |
children | 4d7f45e51e8e |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:e1041e26f01e |
---|---|
1 <?xml version="1.0" encoding="ISO-8859-1"?> | |
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:a="http://www.w3.org/2005/Atom" xmlns="http://www.pauloang.com/"> | |
3 | |
4 <xsl:template match="/a:feed"> | |
5 <site> | |
6 <title><xsl:value-of select="a:title"/></title> | |
7 <link><xsl:value-of select="a:link/@href"/></link> | |
8 <xsl:for-each select="a:entry"> | |
9 <headline> | |
10 <title><xsl:value-of select="a:title"/></title> | |
11 <link><xsl:value-of select="a:link/@href"/></link> | |
12 </headline> | |
13 </xsl:for-each> | |
14 </site> | |
15 </xsl:template> | |
16 | |
17 <xsl:template match="rss/channel"> | |
18 <site> | |
19 <title><xsl:value-of select="title"/></title> | |
20 <link><xsl:value-of select="link"/></link> | |
21 <xsl:for-each select="item"> | |
22 <headline> | |
23 <title><xsl:value-of select="title"/></title> | |
24 <link><xsl:value-of select="link"/></link> | |
25 </headline> | |
26 </xsl:for-each> | |
27 </site> | |
28 </xsl:template> | |
29 | |
30 </xsl:stylesheet> |