Im not sure if this is the right forum, if it isnt then apologies.
Ive modified the XSLT that come with the blog4umbraco package to create a News feed for my current project, however when I used an online RSS validator (http://www.feedvalidator.org/) it threw out a few errors, nothing major as I know the feed works.The first error was about the urn:rssdatehelper. Second was about the <date> field being in the wrong format (i checked the source it was checking, no date in the field).
Basically Im wondering if the validator isnt picking up the correct RSS as the RSS macro isnt having any variables parsed through?
and secondly how would one go about validating their RSS feed?
<!-- Update these variables to modify the feed --> <xsl:variable name="RSSNoItems" select="string('20')"/> <xsl:variable name="RSSTitle" select="$currentPage/data[@alias = 'PageTitle']"/> <xsl:variable name="SiteURL" select="string('http://harrogate.mba.ac.uk')"/> <xsl:variable name="RSSDescription" select="$currentPage/node/node/node/node/data[@alias = 'Description']"/> <xsl:variable name="RSSpub" select="@updateDate"/>
<!-- This gets all news and events and orders by updateDate to use for the pubDate in RSS feed --> <xsl:variable name="pubDate"> <xsl:for-each select="$currentPage/descendant-or-self::node [@nodeTypeAlias = 'NewsEvents'] [string(data [@alias='umbracoNaviHide']) != '1']"> <xsl:sort select="$RSSpub" data-type="text" order="descending" /> <xsl:if test="position() = 1"> <xsl:value-of select="updateDate" /> </xsl:if> </xsl:for-each> </xsl:variable>
<xsl:template match="/"> <!-- change the mimetype for the current page to xml --> <xsl:value-of select="umbraco.library:ChangeContentType('text/xml')"/>
Ok nevemind, the validator was just a bit rubbish. Tried on http://validator.w3.org/ ; only got 1 error and it was validated as correct other than that,
RSS Feed
Howdy
Im not sure if this is the right forum, if it isnt then apologies.
Ive modified the XSLT that come with the blog4umbraco package to create a News feed for my current project, however when I used an online RSS validator (http://www.feedvalidator.org/) it threw out a few errors, nothing major as I know the feed works.The first error was about the urn:rssdatehelper. Second was about the <date> field being in the wrong format (i checked the source it was checking, no date in the field).
Basically Im wondering if the validator isnt picking up the correct RSS as the RSS macro isnt having any variables parsed through?
and secondly how would one go about validating their RSS feed?
The code i am using is:
NewsRSS:
Cheers
Alec
Ok nevemind, the validator was just a bit rubbish. Tried on http://validator.w3.org/ ; only got 1 error and it was validated as correct other than that,
Sorry if i wasted anyones time!
Alec
is working on a reply...