comparison myrss/step2.xsl @ 9:fbd8c30c465c

add more RSS feeds; normalize-space in step2.xsl and "a hrefs"; myrss_update.sh now outputs a more complete HTML document to stdout
author paulo@twcdns.fastsearch.net
date Sun, 12 Sep 2010 23:36:32 -0700
parents 4d7f45e51e8e
children
comparison
equal deleted inserted replaced
0:4319f4985d8b 1:14fc978f7fce
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:pba="http://www.pauloang.com/"> 2 <xsl:stylesheet version="1.0"
3 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 xmlns:pba="http://www.pauloang.com/">
3 <xsl:output method="html"/> 5 <xsl:output method="html"/>
4 6
5 <xsl:template match="pba:site"> 7 <xsl:template match="pba:site">
6 <H2><A HREF="{pba:link}"><xsl:value-of select="pba:title"/></A></H2> 8 <H2><A HREF="{normalize-space(pba:link)}"><xsl:value-of select="pba:title"/></A></H2>
7 <P> 9 <P>
8 <xsl:for-each select="pba:headline"> 10 <xsl:for-each select="pba:headline">
9 <A HREF="{pba:link}"><xsl:value-of select="pba:title"/></A> - 11 <A HREF="{normalize-space(pba:link)}"><xsl:value-of select="pba:title"/></A> -
10 </xsl:for-each> 12 </xsl:for-each>
11 </P> 13 </P>
12 </xsl:template> 14 </xsl:template>
13 15
14 </xsl:stylesheet> 16 </xsl:stylesheet>