(use atom rfc3339)
;; rfc4287 extensive example
(write-atom-doc
(make-atom-doc
(make-feed
title: (make-title "dive into mark")
subtitle: (make-subtitle "A lot of effort went into making this effortless"
type: 'html)
updated: "2005-07-31T12:29:29Z"
id: "tag:example.org,2003:3"
links: (list (make-link type: 'html
uri-language: "en"
uri: "http://example.org")
(make-link relation: "self"
type: "application/atom+xml"
uri: "http://example.org/feed.atom"))
rights: (make-rights "Copyright (c) 2003, Mark Pilgrim")
generator: (make-generator "Example Toolkit"
uri: "http://www.example.com"
version: "1.0")
entries: (list
(make-entry
title: (make-title "Atom draft-07 snapshot")
links: (list (make-link type: 'html
uri: "http://example.org/2005/04/02/atom")
(make-link relation: "enclosure"
type: "audio/mpeg"
length: 1337
uri: "http://example.org/audio/ph34r_my_podcast.mp3"))
id: "tag:example.org,2003:3.2397"
updated: (rfc3339->string (make-rfc3339 2005 07 31 12 29 29 0 0))
published: (rfc3339->string (make-rfc3339 2003 12 13 08 29 29 0 (* 3600 4)))
authors: (list (make-author name: "Mark Pilgrim"
uri: "http://example.org"
email: "f8dy@example.com"))
contributors: (list (make-contributor
name: "Sam Ruby")
(make-contributor
name: "Joe Gregorio"))
;; xml:base, xml:lang cannot be handled yet
content: (make-content
'(xhtml:div
(xhtml:p (xhtml:i "[Update: The Atom draft is finished.]")))
type: 'xhtml))))))
#|
Example Toolkit
tag:example.org,2003:3
Copyright (c) 2003, Mark Pilgrim
A <em>lot</em> of effort went
into making this effortless
dive into mark
2005-07-31T12:29:29Z
Mark Pilgrim
http://example.org
f8dy@example.com
Sam Ruby
Joe Gregorio
[Update: The Atom draft is finished.]
tag:example.org,2003:3.2397
2003-12-13T08:29:29-04:00
Atom draft-07 snapshot
2005-07-31T12:29:29Z
|#