Mercurial > hg > index.fcgi > www > www-1
comparison myrss/step2.xsl @ 8:8afd18e103c7
myrss: add FEEDS and myrss_update.sh
author | paulo@twcdns.fastsearch.net |
---|---|
date | Sat, 11 Sep 2010 04:20:41 -0700 |
parents | 2be1a035d725 |
children | fbd8c30c465c |
comparison
equal
deleted
inserted
replaced
0:e1041e26f01e | 0:4319f4985d8b |
---|---|
1 <?xml version="1.0" encoding="ISO-8859-1"?> | 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/"> | 2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:pba="http://www.pauloang.com/"> |
3 <xsl:output method="html"/> | |
3 | 4 |
4 <xsl:template match="/a:feed"> | 5 <xsl:template match="pba:site"> |
5 <site> | 6 <H2><A HREF="{pba:link}"><xsl:value-of select="pba:title"/></A></H2> |
6 <title><xsl:value-of select="a:title"/></title> | 7 <P> |
7 <link><xsl:value-of select="a:link/@href"/></link> | 8 <xsl:for-each select="pba:headline"> |
8 <xsl:for-each select="a:entry"> | 9 <A HREF="{pba:link}"><xsl:value-of select="pba:title"/></A> - |
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> | 10 </xsl:for-each> |
14 </site> | 11 </P> |
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> | 12 </xsl:template> |
29 | 13 |
30 </xsl:stylesheet> | 14 </xsl:stylesheet> |