[Catalyst] [Announce] Planet Catalyst
A. Pagaltzis
pagaltzis at gmx.de
Sun Aug 6 18:48:55 CEST 2006
* Tatsuhiko Miyagawa <miyagawa at gmail.com> [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/>
More information about the Catalyst
mailing list