2017-10-19

(sph web atom)

create atom syndication feeds with sxml

external links

atomenabled.org/developers/syndication/

en.wikipedia.org/wiki/Atom_%28standard%29#Atom_compared_to_RSS_2.0

tools.ietf.org/html/rfc4287

import name

(sph web atom)

exports

atom-author

procedure

signature

a ... ->

name [#:email string #:uri string] -> sxml

atom-category

procedure

signature

term #:label #:scheme ->

string [#:scheme string #:label string] -> sxml

atom-content-source

procedure

signature

src #:type ->

string [#:type string] -> sxml

atom-content-text

procedure

signature

a ... ->

[#:type string] sxml ... -> sxml

atom-content-xhtml

procedure

signature

a ... ->

sxml ... -> sxml

description

wraps content in a div as required and sets the type appropriately

atom-contributor

procedure

signature

a ... ->

name [#:email string #:uri string] -> sxml

atom-entry

procedure

signature

id title updated #:authors #:categories #:content #:contributors #:link #:published #:rights #:source #:summary ->

description

::

string string integer:utc-posix-time/string

[#:authors string/atom-author/(atom-author ...)

#:categories string/atom-category/(atom-category ...)

#:contributors string/atom-contributor/(atom-contributor ...)

#:link string/atom-link

#:published integer:utc-posix-time/string

#:source sxml

#:summary text/atom-summary]

->

sxml

atom-feed

procedure

signature

id title updated #:categories #:contributors #:generator #:icon #:link #:logo #:rights #:subtitle #:authors content ... ->

description

::

string/number string integer:utc-posix-time/string

[#:authors string/atom-author/(atom-author ...)

#:link string/atom-link

#:categories string/atom-category/(atom-category ...)

#:contributors string/atom-contributor/(atom-contributor ...) #:generator string

#:icon string #:logo string #:rights string/atom-rights/(atom-rights ...)

#:subtitle string/atom-subtitle/(atom-subtitles ...)]

->

sxml

atom-link

procedure

signature

href #:hreflang #:length #:title #:type #:rel ->

string [#:rel string #:type string #:hreflang string #:title string #:length integer] -> sxml

atom-person

procedure

signature

author? name #:email #:uri ->

boolean [#:email string #:uri string] -> sxml

description

author or contributor

atom-text

procedure

signature

tag #:type content ... ->

symbol [#:type string] sxml ... -> sxml

description

examples for type are "text", "html", "xhtml"

atom-text-xhtml

procedure

signature

tag content ... ->

symbol sxml ... -> sxml

description

wraps content in a div as required and sets the type appropriately

sph-web-atom-description

variable

tags: programming guile documentation library scheme sph-lib q1 computer feed web-atom atom highlight sph-web-atom