Re: Atom Content Negotiation

Hadrien Gardeur <hadrien.gardeur@feedbooks.com> Wed, 18 May 2011 13:32 UTC

Return-Path: <owner-atom-syntax@mail.imc.org>
X-Original-To: ietfarch-atompub-archive@ietfa.amsl.com
Delivered-To: ietfarch-atompub-archive@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B21B9E06BD for <ietfarch-atompub-archive@ietfa.amsl.com>; Wed, 18 May 2011 06:32:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.676
X-Spam-Level:
X-Spam-Status: No, score=-2.676 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, J_CHICKENPOX_44=0.6, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hWUROWx+Pc8X for <ietfarch-atompub-archive@ietfa.amsl.com>; Wed, 18 May 2011 06:32:04 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2001:4870:a30c:41::81]) by ietfa.amsl.com (Postfix) with ESMTP id E2754E06BF for <atompub-archive@ietf.org>; Wed, 18 May 2011 06:32:03 -0700 (PDT)
Received: from hoffman.proper.com (localhost [127.0.0.1]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id p4IDQOQd020466 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 18 May 2011 06:26:24 -0700 (MST) (envelope-from owner-atom-syntax@mail.imc.org)
Received: (from majordom@localhost) by hoffman.proper.com (8.14.4/8.13.5/Submit) id p4IDQO9M020465; Wed, 18 May 2011 06:26:24 -0700 (MST) (envelope-from owner-atom-syntax@mail.imc.org)
X-Authentication-Warning: hoffman.proper.com: majordom set sender to owner-atom-syntax@mail.imc.org using -f
Received: from mail-gx0-f171.google.com (mail-gx0-f171.google.com [209.85.161.171]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id p4IDQLah020459 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=FAIL) for <atom-syntax@imc.org>; Wed, 18 May 2011 06:26:22 -0700 (MST) (envelope-from hadrien.gardeur@feedbooks.com)
Received: by gxk22 with SMTP id 22so745175gxk.16 for <atom-syntax@imc.org>; Wed, 18 May 2011 06:26:21 -0700 (PDT)
Received: by 10.151.11.9 with SMTP id o9mr1519945ybi.360.1305725181092; Wed, 18 May 2011 06:26:21 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.151.103.21 with HTTP; Wed, 18 May 2011 06:25:57 -0700 (PDT)
In-Reply-To: <20110517090540.GA3329@aliman-desktop>
References: <4DBA06CE.8070304@berkeley.edu> <20110516092225.GD5335@skiathos> <20110516103355.GA8063@skiathos> <20110517090540.GA3329@aliman-desktop>
From: Hadrien Gardeur <hadrien.gardeur@feedbooks.com>
Date: Wed, 18 May 2011 15:25:57 +0200
Message-ID: <BANLkTinJqGtKfeWCPZxVXmKWsRm0RZgk9A@mail.gmail.com>
Subject: Re: Atom Content Negotiation
To: Alistair Miles <alimanfoo@googlemail.com>
Cc: Erik Wilde <dret@berkeley.edu>, Atom-Syntax <atom-syntax@imc.org>
Content-Type: multipart/alternative; boundary="000e0cd6ae5e97e66b04a38cd569"
Sender: owner-atom-syntax@mail.imc.org
Precedence: bulk
List-Archive: <http://www.imc.org/atom-syntax/mail-archive/>
List-Unsubscribe: <mailto:atom-syntax-request@imc.org?body=unsubscribe>
List-ID: <atom-syntax.imc.org>

>
> On reflection, I don't think the link template idea above is a good
> solution,
> because the client has no way of finding out what inline content types are
> available.
>
> I wonder if a better solution would be to invent three new pieces of
> machinery:
>
> * a new @inline-type extension attribute for use on atom:link elements
>
> * a new Accept-Inline HTTP header
>
> * a new <accept-inline> element for use within app:collection elements in
> Atom
> service documents
>

These are three different problems though...
Erik seems to be strictly interested in solving the first one, and in this
case, would a single attribute with a secondary mimetype be enough ?
I don't think that we need a new rel value, or that we should limit this new
attribute to a specific rel either. While you're strictly talking about
alternate versions of the same content, this attribute would also be useful
for other use cases (for example I might publish a music review as an atom
entry, and provide a link@rel="related" with type="application/zip" and
inline-type="audio/mpeg").

Hadrien