Make the Dilbert.com feed validate with http://feedvalidator.org and also
improve compatibility by providing a guid and by excluding the weird
xmlns:php namespace in the output.
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl"
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:php="http://php.net/xsl"
- xsl:extension-element-prefixes="php">
+ xsl:extension-element-prefixes="php"
+ exclude-result-prefixes="php">
<xsl:output method="xml" indent="yes"/>
<xsl:output method="xml" indent="yes"/>
<link>
<xsl:value-of select="$item-permalink"/>
</link>
<link>
<xsl:value-of select="$item-permalink"/>
</link>
+ <guid>
+ <xsl:value-of select="$item-permalink"/>
+ </guid>
<pubDate>
<xsl:value-of select="php:functionString('Tweeper::str_to_gmdate', normalize-space(.//date))"/>
</pubDate>
<pubDate>
<xsl:value-of select="php:functionString('Tweeper::str_to_gmdate', normalize-space(.//date))"/>
</pubDate>
<xsl:value-of select="//meta[@property='og:description']/@content"/>
</description>
<image>
<xsl:value-of select="//meta[@property='og:description']/@content"/>
</description>
<image>
+ <title>
+ <xsl:value-of select="$channel-title"/>
+ </title>
+ <link>
+ <xsl:value-of select="$channel-link"/>
+ </link>
<url>
<xsl:value-of select="concat($BaseURL, //img[@alt='Dilbert logo']/@src)"/>
</url>
<url>
<xsl:value-of select="concat($BaseURL, //img[@alt='Dilbert logo']/@src)"/>
</url>