[Catalyst] CatalystSites.org
Paul Makepeace
paulm at paulm.com
Sat Apr 12 18:53:25 BST 2008
On Fri, Apr 11, 2008 at 1:21 PM, Nigel Metheringham <
nigel.metheringham at dev.intechnology.co.uk> wrote:
>
> On 11 Apr 2008, at 12:41, Paul Makepeace wrote:
>
> > I'm curious, is there a compelling reason you're using one of the
> > nine(!) RSS "standards" versus Atom?
> >
> ...
>
>
> > my $feed =3D XML::Feed->new('Atom');
> >
>
> Going somewhat off-topic, when I was trying this I found XML::Feed was
> producing Atom feeds that caused apoplexy to the feed validators I tried,
so
> I changed to XML::Atom::SimpleFeed (which has other issues but was at
least
> producing output that the checker was happy with).
>
> Are you generating valid Atom with XML::Feed or did I hold the wrong end
of
> the chainsaw?
Hi Nigel,
The only non-validation I'm finding is that this module is producing dates
that don't appear to include the timezone info which is triggering a 'date
not RFC3339 compliant' error.
DateTime::Format::W3CDTF 90
/usr/local/share/perl/5.8.8/DateTime/Format/W3CDTF.pm
86: # $dt->hour, $dt->minute, $dt->second ) :
87: # sprintf( '%04d-%02d-%02d', $dt->year, $dt->month, $dt->da=
y )
88: # );
89:
* 90: my $base =3D sprintf( '%04d-%02d-%02dT%02d:%02d:%02d',
* 91: $dt->year, $dt->month, $dt->day,
92: $dt->hour, $dt->minute, $dt->second );
93:
94:
Incidentally this has shown up a bug in my code where if the author isn't
set the validation will complain about that too.
if (my @authors =3D $entry->authors) {
foreach my $author (@authors) {
$feed_entry->author($author);
}
} else {
$feed_entry->author('Unknown');
}
Paul (apols to anyone that cares about the HTML)
>
> Nigel.
> --
> [ Nigel Metheringham Nigel.Metheringham at InTechnology.com ]
> [ - Comments in this message are my own and not ITO opinion/policy - ]
>
>
>
>
> _______________________________________________
> List: Catalyst at lists.scsys.co.uk
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
http://www.mail-archive.com/catalyst@lists.scsys.co.uk/
> Dev site: http://dev.catalyst.perl.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20080412/9db06=
6ce/attachment.htm
More information about the Catalyst
mailing list