[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Categories and fixed="yes"
- To: atom-protocol <atom-protocol@xxxxxxx>
- Subject: Categories and fixed="yes"
- From: "Joe Gregorio" <joe@xxxxxxxxxxxxxx>
- Date: Wed, 14 Nov 2007 14:23:08 -0500
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; bh=GO1mu9tEn+2OmBHPcpwdE0jCJEhJPXMDMrkgTJXarNM=; b=rW4rGNsD8vEAaaxUYhFtCb5TLaWZzKdo13Yg1tPHCU8/ZQAwQioPKruI/jttNApgi0Ci2anKeucPt5aKLJYBXfRD6/RxQ7wSi1gw4FAx90GOsnmPy/vJ1vz4FpCYI+jo9D0FmYOyfgCMxRh8eKEH8POmuvYWj9EGweKncp2+scs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:sender:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition:x-google-sender-auth; b=tPjXbY9yzkLoqD+fFrgwkgzyG4MTqaXh29hgkIjmcdMAGmaWcxj9J4RwdszhCh7CQY0GT65TSc2bgzw+MIzHvKH1HK4MRpGzc7Jqxw796zwc5jD9nc4z4Z1O+G2LxHiMdAtjbVQ70Mlbd8sjox6qwbOFyL4jRO2Jhj98JKG5Jww=
- List-archive: <http://www.imc.org/atom-protocol/mail-archive/>
- List-id: <atom-protocol.imc.org>
- List-unsubscribe: <mailto:atom-protocol-request@imc.org?body=unsubscribe>
- Sender: owner-atom-protocol@xxxxxxxxxxxx
The following issue has came up during the AtomPub interop.
There appears to be no way for a server to signal that it
has an open ended set of categories, as long
as they all stay within the same scheme.
Here from the spec is the definition of the "fixed" attribute:
http://bitworking.org/projects/atom/rfc5023.html#rfc.section.7.2.1.1
"""
The app:categories element can contain a "fixed" attribute, with a
value of either "yes" or "no", indicating whether the list of categories
is a fixed or an open set. The absence of the "fixed" attribute is
equivalent to the presence of a "fixed" attribute with a value of "no".
"""
Now given the following:
<categories fixed="yes" scheme="http://example.org/extra-cats/">
</categories>
Is it legal to add an entry with the following category:
<atom:category
scheme="http://example.org/extra-cats/"
term="joke" />
I believe the answer is no. On the other hand, given:
<categories fixed="no" scheme="http://example.org/extra-cats/">
</categories>
then I believe it is legal for a client to try to add an entry
with the following category:
<atom:category
scheme="http://some-other-scheme-not-listed.example.net"
term="joke" />
1. Is my reading of the spec correct?
2. Does anyone else see a need for categories
that are open ended but restricted to a
given scheme? We do, because this is the
way Blogger works.
Thanks,
-joe
--
Joe Gregorio http://bitworking.org