* Tatsuhiko Miyagawa <[EMAIL PROTECTED]> [2006-08-06 18:10]:
> http://feedvalidator.org/check.cgi?url=http%3A%2F%2Fplanet.catalystframework.org%2Fatom.xml
>
> Not having feed:id and entry:id is XML::Feed's bug. I'll update
> XML::Feed to use XML::Atom newer elements to emit a valid 1.0
> feed and make Plagger require the compatilble version.
Excellent! The most important to fix is the content model, which
differs quite drastically between Atom 0.3 and 1.0:
• Don’t use `type="text/html"` (or `application/xhtml+xml`, for
that matter). In Atom 1.0, this means you want to include a
full document of the respective MIME Type, the whole shebang,
ie.:
<html>
<head>
<title>...</title>
...
</head>
<body>
...
</body>
</html>
Obviously, that’s not what you mean.
• To do the usual thing and include only fragments, either use
`type="html"`, which is like `mode="escaped"` in Atom 0.3; or
use `type="xhtml"`, which is like `mode="xml"` in Atom 0.3,
with the exception that `type="xhtml"` requires you to put the
content in an XHTML `<div>`.
• Mixing the two does not work. You must not put child elements
in a text construct with `type="text"` when you’re using any
`text/*` MIME Type. This is what XML::Atom gets badly wrong.
Once you address that, the resulting feeds should mostly work.
(Not to say you should stop short of 100% validity of course.)
Thanks for your effort. :)
Regards,
--
Aristotle Pagaltzis // <http://plasmasturm.org/>
_______________________________________________
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/