<?xml version='1.0' encoding='iso-8859-1'?>

<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform'
xmlns:html="http://www.w3.org/1999/xhtml" exclude-result-prefixes="html">

<xsl:output method='xml' version='1.0' encoding='iso-8859-1' indent='yes' 
doctype-public="-//Netscape Communications//DTD RSS 0.91//EN"/>

<xsl:variable name="BASE">http://www.tigerchild.com/</xsl:variable>

<xsl:template match="/">
<rss version="0.91">
  <channel>
    <title>Planet Parent</title>
    <link>http://www.tigerchild.com/cms.asp?id=1808</link>
    <description>Juliet Jones' parental cries for help</description>
    <language>en-us</language>
    <xsl:apply-templates select="//html:td[@class='bodyblue']" />
  </channel>
</rss>
</xsl:template>

<xsl:template match="html:p">
    <xsl:if test="html:a">
        <item>
            <title><xsl:value-of select="normalize-space(html:a)"/></title>
            <link><xsl:value-of select="concat($BASE,html:a/@href)"	/></link>
            <description><xsl:value-of
                    select="normalize-space(following-sibling::html:p[1])"/></description>
        </item>
    </xsl:if>
</xsl:template>
<xsl:template match="text()|@*">
</xsl:template>
</xsl:stylesheet>
