On Jan 28, 2005, at 01:38, Eric Scheid wrote:

On 28/1/05 7:39 AM, "Henri Sivonen" <[EMAIL PROTECTED]> wrote:

If the value of "type" is "XHTML", the content of the Text construct
MUST be a single xhtml:div element

-1 gratuitous element cruft. The text construct element itself serves as a container.

but atom:title != xhtml:title

also, are there such things as xhtml:copyright, xhtml:info, or
xhtml:summary?

No, but that is not the point. The *Atom* Text constructs work as containers. The div is just cruft.


IMO,
<a:copyright type='XHTML'>Copyright 2005 John Doe, <h:em>all rights reserved</h:em></a:copyright>
(assuming 'a' to be bound to the Atom namespace and 'h' to the XHTML namespace) is less crufty than
<a:copyright type='XHTML'><div xmlns='http://www.w3.org/1999/xhtml'>Copyright 2005 John Doe, <em>all rights reserved</em></div></a:copyright>
.


Even if you wanted to declare the XHTML namespace on the spot, you could put the declaration on the Atom Text construct. Any feed reader using namespace-aware XML tools properly will have no trouble dealing with the less crufty versions.

--
Henri Sivonen
[EMAIL PROTECTED]
http://iki.fi/hsivonen/



Reply via email to