On 8/12/08 3:17 PM, "Peter Keane" <[EMAIL PROTECTED]> wrote:
> I am getting an error from the feedvalidator for text in the atom:category
> element:
> <category term='breed'>siberian husky</category>
>
> But the spec says it "assigns no meaning to the content" and the
> RNC seems to allow it.
Hmm ... I suspect what you actually want to do is instead something like
this:
<category scheme='breed' term="siberian husky" />
(where 'breed' would actually be an IRI, not a keyword).
I wouldn't try this though:
<category term='breed' label="siberian husky" />
... because that is syntactically the same category as:
<category term='breed' term="any other breed" />
Finally, if your category scheme has unfriendly codes for terms then you
would do this:
<category
scheme='http://www.loc.gov/catdir/cpso/lcco/'
term="SF429.S65"
label="siberian husky" />
<!-- note: term may not be entirely accurate, IANAL -->
<!-- (where L = Librarian, of course ;-) -->
Bottom line is don't go putting what you think is the label for the category
as text content of the element because (a) we have an attribute specifically
for that purpose, and (b) it gets messy if someone else wants to put an
extension element in as content ...
<category ...>
<x:see-also ref="foo" />
</category>
e.