annotate 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
rev   line source
paulo@6 1 <?xml version="1.0" encoding="ISO-8859-1"?>
paulo@6 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/">
paulo@6 3
paulo@6 4 <xsl:template match="/a:feed">
paulo@6 5 <site>
paulo@6 6 <title><xsl:value-of select="a:title"/></title>
paulo@6 7 <link><xsl:value-of select="a:link/@href"/></link>
paulo@6 8 <xsl:for-each select="a:entry">
paulo@6 9 <headline>
paulo@6 10 <title><xsl:value-of select="a:title"/></title>
paulo@6 11 <link><xsl:value-of select="a:link/@href"/></link>
paulo@6 12 </headline>
paulo@6 13 </xsl:for-each>
paulo@6 14 </site>
paulo@6 15 </xsl:template>
paulo@6 16
paulo@6 17 <xsl:template match="rss/channel">
paulo@6 18 <site>
paulo@6 19 <title><xsl:value-of select="title"/></title>
paulo@6 20 <link><xsl:value-of select="link"/></link>
paulo@6 21 <xsl:for-each select="item">
paulo@6 22 <headline>
paulo@6 23 <title><xsl:value-of select="title"/></title>
paulo@6 24 <link><xsl:value-of select="link"/></link>
paulo@6 25 </headline>
paulo@6 26 </xsl:for-each>
paulo@6 27 </site>
paulo@6 28 </xsl:template>
paulo@6 29
paulo@6 30 </xsl:stylesheet>