Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsError after upgradeError after upgrade
Previous
 
Next
New Post
9/29/2008 10:52 AM
 

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>

 

 
New Post
9/29/2008 1:34 PM
 

As you'll see in the other thread this is due to the original feed not conforming to the RSS 2.0 standard. In the new version of Newfeeds (probably available within a week) 04.00.01 the constraints have been relaxed and this feed should pass.

Kind regards


Peter Donker
Bring2mind http://www.bring2mind.net
Home of the Document Exchange,
the professional document management solution for DNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsNews FeedsNews FeedsError after upgradeError after upgrade


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out