One of my news modules uses the following data sources and XSL file. After the upgrade to 4.0.0, it generates the following arror, as if the module is applying some generic constraints before switching to my target XSL file. Is there any way to fix this? I originally tried implementing the function using an Iframe but I was unable to attach the XSL to the module (and have no control over the data source), and with the help of iwonder on this forum, got it working as a News module.
Error: The 'pubDate' element is invalid - The value '' is invalid according to its datatype 'tRfc822formatDate' - The Pattern constraint failed.
http://www.tides.info/?command=rss&location=Brookings%2c+Chetco+Cove%2c+Oregon
<?xml version='1.0'?>
<xsl:stylesheet
version="1.0" exclude-result-prefixes="rdf rss l dc admin content xsl"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rss="http://purl.org/rss/1.0/"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:admin="http://webns.net/mvcb/"
xmlns:l="http://purl.org/rss/1.0/modules/link/"
xmlns:content="http://purl.org/rss/1.0/modules/content/">
<!-- phil 'iwonder' guerra - xsl simple rdf translation file. -->
<xsl:output omit-xml-declaration="yes"/>
<xsl:template match="/rdf:RDF">
<html><head></head><body>
<table width="40%" align="left"><tbody>
<tr><th>Date</th><th>Time</th><th colspan="2">Event</th></tr>
<xsl:for-each select="rss:item">
<xsl:variable name="desc" select="rss:description"/>
<xsl:if test="substring($desc,1,2)='20'">
<xsl:variable name="date" select="substring-before($desc,' ')"/>
<xsl:if test="contains($desc,'Tide')">
<tr><td><xsl:value-of select="$date" disable-output-escaping="yes"/></td>
<td align="right"><xsl:value-of select="substring-before(substring-after($desc,'at '),': ')" disable-output-escaping="yes"/></td>
<td align="right"><xsl:value-of select="substring(substring-after($desc,'feet '),1,5)" disable-output-escaping="yes"/></td>
<td align="right"><xsl:value-of select="substring-before(substring-after($desc,'T: '),'feet')" disable-output-escaping="yes"/> feet </td></tr>
</xsl:if>
<xsl:if test="(contains($desc,'Sun'))">
<tr><td><xsl:value-of select="$date" disable-output-escaping="yes"/></td>
<td align="right"><xsl:value-of select="substring-before(substring-after($desc,'at '),': ')" disable-output-escaping="yes"/></td>
<td colspan="2" align="center"><xsl:value-of select="substring-after($desc,'T: ')" disable-output-escaping="yes"/></td></tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</tbody></table></body></html>
</xsl:template>
</xsl:stylesheet>