Re: looking for atom advice (newbie atom developer)

Jan Algermissen <algermissen1971@mac.com> Mon, 19 September 2011 16:34 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 6DCDF21F8BFB for <ietfarch-atompub-archive@ietfa.amsl.com>; Mon, 19 Sep 2011 09:34:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0inXTB7dk5zK for <ietfarch-atompub-archive@ietfa.amsl.com>; Mon, 19 Sep 2011 09:34:49 -0700 (PDT)
Received: from hoffman.proper.com (IPv6.Hoffman.Proper.COM [IPv6:2605:8e00:100:41::81]) by ietfa.amsl.com (Postfix) with ESMTP id 9582C21F8B92 for <atompub-archive@ietf.org>; Mon, 19 Sep 2011 09:34:49 -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 p8JGWehL009367 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 19 Sep 2011 09:32:40 -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 p8JGWeDK009366; Mon, 19 Sep 2011 09:32:40 -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 asmtpout026.mac.com (asmtpout026.mac.com [17.148.16.101]) by hoffman.proper.com (8.14.4/8.14.3) with ESMTP id p8JGWd0U009352 for <atom-syntax@imc.org>; Mon, 19 Sep 2011 09:32:40 -0700 (MST) (envelope-from algermissen1971@mac.com)
MIME-version: 1.0
Content-transfer-encoding: 7bit
Content-type: text/plain; CHARSET="US-ASCII"
Received: from [192.168.2.107] ([84.143.216.153]) by asmtp026.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LRS0034V3A6KN40@asmtp026.mac.com> for atom-syntax@imc.org; Mon, 19 Sep 2011 09:32:35 -0700 (PDT)
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.4.6813, 1.0.211, 0.0.0000 definitions=2011-09-19_04:2011-09-19, 2011-09-19, 1970-01-01 signatures=0
X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 spamscore=0 ipscore=0 suspectscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=6.0.2-1012030000 definitions=main-1109190169
Subject: Re: looking for atom advice (newbie atom developer)
From: Jan Algermissen <algermissen1971@mac.com>
In-reply-to: <4E7763C2.3050801@meetinghouse.net>
Date: Mon, 19 Sep 2011 18:02:13 +0200
Cc: atom-syntax@imc.org
Message-id: <B62AD347-D345-47D6-A266-06A50D75C486@mac.com>
References: <4E7763C2.3050801@meetinghouse.net>
To: Miles Fidelman <mfidelman@meetinghouse.net>
X-Mailer: Apple Mail (2.1084)
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 Sep 19, 2011, at 5:46 PM, Miles Fidelman wrote:

> 
> Hello Folks,
> 
> Please excuse me if this is the wrong list for these questions, but there don't seem to be very many places where atom is actively discussed (if anyone can point me at a better community for developers working with atom, please let me know).
> 
> We're considering using Atom in a somewhat non-standard way - as a vehicle for transporting HTML content (think web pages, single-page JavaScript applications).  It seems like Atom is perfect for this, but the specifications are a bit vague in several areas, and implementations even more so.
> 
> RE. SPECS:
> 
> The spec. for content elements, of type HTML (RFC4287, par. 3.1.1.2.), says "If the value of "type" is "html", the content of the Text construct  .... SHOULD be suitable for handling as HTML [HTML <http://tools.ietf.org/html/rfc4287#ref-HTML>] ... (and) SHOULD be such that it could validly appear directly within an HTML <DIV> element, after unescaping. Atom Processors that display such content MAY use that markup to aid in its display."
> 
> This implies that the notional use of an HTML content element is for a snippet of HTML, but does not seem to preclude embedding an entire web page, including JavaScript, within an HTML content element.
> 
> Questions:
> 
> 1. Is this a correct interpretation?

No. A complete HTML document cannot be put inside an HTML <div>. Why do you consider the text to be vague?

You can simply put the HTML doc in there and make the type a proper mime type, e.g. text/html. Then the limitation of type="HTML" does not apply.


> 
> 2. If so, does anybody know of anybody who's doing this kind of thing?

No.

> 
> 3. Can anybody suggest any tools, libraries for generating Atom with complicated content elements, posting it via Atompub, processing posts on a server, and then parsing feeds on a client?  It seems like all of the tools I've been able to find view Atom as nothing more than a replacement for RSS as a way to post and read blog feeds.

Apache Abdere should work fine.


> 
> 4. Any thoughts or pointers vis-a-vis how common browsers handle Atom feeds.  It's already clear that they handle/render feeds differently when they're accessed via HTTP, than when the same XML is read from a file.  It sure would be nice to find some material that would help me understand what's going on.

No - but that should be quite simple to check, I assume.

Jan


> 
> Thanks very much for any assistance you can offer.
> 
> Miles Fidelman
> 
> -- 
> In theory, there is no difference between theory and practice.
> In<fnord>  practice, there is.   .... Yogi Berra
> 
>