Mercurial > hg > index.fcgi > www > www-1
diff 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 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/myrss/step1.xsl Sat Sep 11 02:49:56 2010 -0700 1.3 @@ -0,0 +1,30 @@ 1.4 +<?xml version="1.0" encoding="ISO-8859-1"?> 1.5 +<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/"> 1.6 + 1.7 +<xsl:template match="/a:feed"> 1.8 +<site> 1.9 +<title><xsl:value-of select="a:title"/></title> 1.10 +<link><xsl:value-of select="a:link/@href"/></link> 1.11 +<xsl:for-each select="a:entry"> 1.12 + <headline> 1.13 + <title><xsl:value-of select="a:title"/></title> 1.14 + <link><xsl:value-of select="a:link/@href"/></link> 1.15 + </headline> 1.16 +</xsl:for-each> 1.17 +</site> 1.18 +</xsl:template> 1.19 + 1.20 +<xsl:template match="rss/channel"> 1.21 +<site> 1.22 +<title><xsl:value-of select="title"/></title> 1.23 +<link><xsl:value-of select="link"/></link> 1.24 +<xsl:for-each select="item"> 1.25 + <headline> 1.26 + <title><xsl:value-of select="title"/></title> 1.27 + <link><xsl:value-of select="link"/></link> 1.28 + </headline> 1.29 +</xsl:for-each> 1.30 +</site> 1.31 +</xsl:template> 1.32 + 1.33 +</xsl:stylesheet>