W3C home > Mailing lists > Public > www-validator@w3.org > April 2008

Atom feed validation question.

From: Bill Brown <billbrown7@gmail.com>
Date: Tue, 15 Apr 2008 20:54:56 -0500
Message-ID: <2c580c790804151854r559be732u44f6816b0eb7957b@mail.gmail.com>
To: www-validator@w3.org
Greetings:

I'm struggling with a validation issue using the w3 validator to check
documents created by my atom 1.0 feed  generator library

>From the atom spec
http://atomenabled.org/developers/syndication/atom-format-spec.php

atomCommonAttributes = attribute xml:base { atomUri }?, attribute xml:lang {
atomLanguageTag }?, undefinedAttribute*

and

undefinedAttribute = attribute * - (xml:base | xml:lang | local:*) { text }

I'm interpreting undefinedAttribute as an attribute that  does not start
with xml:base, xml:lang or xmlns:... .

I am also interpreting that atomCommonAttributes can have any number of
undefinedAttributes in them.

Does this mean that any element which can contain an atomCommonAttribute
(Logo for example)  validate with an arbitrary attribute?

The http://validator.w3.org validator does not seem to work this way but I
am looking for some kind of explanation or insight as to why this Logo links
does not validate:

The feed can be found here http://www.earthbeats.net/drops.xml and the
validator shows the following line to be in error (and also the icon
element).

<logo href="http://www.earthbeats.net/drops.xml"
rel="self">http://www.earthbeats.net/images/catalogue.gif</logo>

It contains the href and rel attributes which I think fall into the
undefinedAttribute category, but the feed does not validate.

Thanks for your comments or feedback.

Bill.
Received on Wednesday, 16 April 2008 06:11:56 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:29 GMT