Changeset 15670 in project


Ignore:
Timestamp:
08/31/09 16:29:35 (10 years ago)
Author:
anonymous
Message:

Added description of enclosure record.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/rss

    r15666 r15670  
    4444<procedure>(rss:item-link ITEM)</procedure>
    4545<procedure>(rss:item-description ITEM)</procedure>
     46<procedure>(rss:item-enclosure ITEM)</procedure>
    4647<procedure>(rss:item-attributes ITEM)</procedure>
    4748
    4849A record containing data of a RSS item. The {{title}}, {{link}} and
    49 {{description}} fields are strings, the {{attributes}} field holds an
    50 association list mapping symbols to strings and contain all
    51 sub-elements of a specific RSS item, including the {{title}}, {{link}}
    52 and {{description}} values.  So:
     50{{description}} fields are strings. The {{rss:item-enclosure}}
     51procedure returns a {{enclosure}} record (see below). The
     52{{attributes}} field holds an association list mapping symbols to
     53strings and contain all sub-elements of a specific RSS item, including
     54the {{title}}, {{link}} {{description}} and {{enclosure}} values.  So:
    5355
    5456  (eq? (alist-ref 'title (rss:item-attributes ITEM)) (rss:item-title ITEM))  ==>  #t
     
    7072GUIDs are available) if the items have the same contents.
    7173
     74<record>rss:enclosure</record>
     75
     76Holds the url of an embedded file, the mime-type of that file and the
     77length in bytes. It's accessors are defined as follows:
     78
     79<procedure>(rss:renclosure? X)</procedure>
     80<procedure>(rss:enclosure-url ENCLOSURE)</procedure>
     81<procedure>(rss:enclosure-type ENCLOSURE)</procedure>
     82<procedure>(rss:enclosure-length ENCLOSURE)</procedure>
     83
     84All the returned values are strings.
     85
    7286=== Changelog
    7387
    74 * 1.4 improvements by Christian Kellermann
     88* 1.4 improvements by [Christian Kellermann]
    7589* 1.3 ported to chicken 4
    7690* 1.2 fixed broken .meta file [reported by Mario Goulart]
Note: See TracChangeset for help on using the changeset viewer.