Okay, the version problem was my error, so there isn't a bug in the module :)
I guess I don't mind the extra namespaces since only other applications will consume it. However I hope it can consume Atom 1.0 feeds that don't do that, since I a getting feeds from a couple of places for this application. I guess I'll find out! --john --- Tatsuhiko Miyagawa <[EMAIL PROTECTED]> wrote: > Repeated namespace declaration is an expected > behavior, at least with > the current XML::Atom. It's annoying and once in the > past we tried to > normalize that using XML::LibXSLT but it brought > another dozen of bugs > handling Unicode characters etc. and we removed it. > > Displaying atom 0.3 namespace even when you set > DefaultVersion to 1.0 > is weird. Can you make a standalone script to > generate feeds to check, > rather than Catalyst controller? > > > On 9/2/06, John Napiorkowski <[EMAIL PROTECTED]> > wrote: > > Hi, > > > > I'm using the Catalyst::View::Atom::XML module and > > getting a lot of extra namespace declarations in > my > > feeds. Here is what I mean: > > > > <?xml version="1.0" encoding="utf-8"?> > > <feed xmlns="http://purl.org/atom/ns#"> > > <title > > > xmlns="http://purl.org/atom/ns#">feedrolls/all</title> > > <id > > > xmlns="http://purl.org/atom/ns#">http://ubuntu:8091/feedrolls</id> > > <summary xmlns="http://purl.org/atom/ns#">Rolls > of > > External Feeds</summary> > > <modified > > > xmlns="http://purl.org/atom/ns#">2006-09-02T22:31:12Z</modified> > > <link xmlns="http://purl.org/atom/ns#" > > type="application/xml+atom" rel="self" > > href="http://ubuntu:8091/feedrolls"/> > > <entry xmlns="http://purl.org/atom/ns#"> > > <link xmlns="http://purl.org/atom/ns#" > > type="application/xml+atom" rel="edit" > > href="http://ubuntu:8091/feedrolls"/> > > </entry> > > <entry xmlns="http://purl.org/atom/ns#"> > > <link xmlns="http://purl.org/atom/ns#" > > type="application/xml+atom" rel="edit" > > href="http://ubuntu:8091/feedrolls"/> > > </entry> > > </feed> > > > > I'm not sure why I am getting all the repeated > > 'xmlns="http://purl.org/atom/ns#' attributes > attached > > to every element. I am using the force to Version > 1.0 > > option and have downloaded the latest XML::ATOM > > modules. Here' is an example of the code I have > that > > is causing this: > > > > [.. Standard Catalyst Controller header ..] > > > > use XML::Atom; > > use XML::Atom::Feed; > > use XML::Atom::Entry; > > $XML::Atom::DefaultVersion = "1.0"; > > > > sub feedrolls :Local > > { > > [.. stuff removed for clarity ..] > > > > my $xml_atom_object :Stashed = > > XML::Atom::Feed->new(); > > $xml_atom_object->title($c->action); > > } > > > > I also tried the "Verson=>1.0" directly in the new > > method but this didn't make the behavior go away. > > > > Are other people using this module and are they > > getting this problem? > > > > --john > > > > __________________________________________________ > > Do You Yahoo!? > > Tired of spam? Yahoo! Mail has the best spam > protection around > > http://mail.yahoo.com > > > > _______________________________________________ > > List: [email protected] > > Listinfo: > http://lists.rawmode.org/mailman/listinfo/catalyst > > Searchable archive: > http://www.mail-archive.com/[email protected]/ > > Dev site: http://dev.catalyst.perl.org/ > > > > > -- > Tatsuhiko Miyagawa > > _______________________________________________ > List: [email protected] > Listinfo: > http://lists.rawmode.org/mailman/listinfo/catalyst > Searchable archive: > http://www.mail-archive.com/[email protected]/ > Dev site: http://dev.catalyst.perl.org/ > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
