WebMake
WebMake Documentation (version 2.4)

rssbox.wmk

x


LOADING

  < use plugin="xsl" />
  < use plugin="rssbox" />

HTML / XML TAGS

  In WebMake file, load the RSS file itself:
        < template name="perlnews.rss"
            src="http://meerkat.oreillynet.com/?c=738&t=7DAY&_fl=rss";
            format="text/xml">
            < /template>
  In HTML output file, include the CSS code used inside the <style> block in
  the <head> area of your HTML page(s):
        < head>
        [ ... ]
        < style>
        [ ... ]
        
        [ ... ]
        < /style>
        [ ... ]
        < head>
  In HTML output file, use the C<rssbox> tag to insert the RSS box:
        < rssbox rss="perlnews.rdf" />

DESCRIPTION

This WebMake library provides an XSL stylesheet, which allows you to include RSS feeds directly into your HTML documents.

It doesn't matter what version of RSS is used in the item named in the rss parameter, rssbox supports RSS 0.9, 0.91 and 1.0.

Note that you also need to include a LINK or STYLE block which contains the rss2html.stylesheet_text content item, in order to set the CSS styles used by the output HTML.

It doesn't matter what version of RSS is used in the rss parameter, rssbox supports RSS 0.9, 0.91 and 1.0.

The XSL stylesheet used was originally written by Michael Claßen, for WebReference.com. It's been updated with some more XSL from Eric van der Vlist's stylesheet on 4xt.org, to support RSS 1.0, and Eric's converter stylesheets are used to support 0.9 and 0.91.


TEMPLATES USED

The following template items are predefined by this plugin, and can be overridden to change the output. The default setting is listed beside the template's name.

rss2html.box.foreground: black
rss2html.box.background: white
rss2html.box.border: 3
rss2html.title.foreground: black
rss2html.title.background: white
rss2html.title.foreground.mouseover: black
rss2html.title.background.mouseover: white
rss2html.title.font.family: Helvetica, Arial, sansserif
rss2html.title.font.size: 12
rss2html.title.font.style: bold
rss2html.item.foreground: black
rss2html.item.background: white
rss2html.item.foreground.mouseover: black
rss2html.item.background.mouseover: white
rss2html.item.font.family: Times, serif
rss2html.item.font.size: 10
rss2html.item.font.style: italic
rss2html.disable_text_escaping: yes

REQUIRED MODULES

XML::Sablotron


SEE ALSO

http://www.webreference.com/xml/column16/


AUTHORS

Justin Mason <jm@jmason.org>

XSL stylesheet by Michael Claßen of WebReference.com, updated with RSS 1.0 support with help from Eric van der Vlist's stylesheet on 4xt.org.

The conversion stylesheets, to handle RSS 0.9 and 0.91 feeds, are Copyright (c) 2000 Eric van der Vlist and 4xt.org (http://4xt.org)

WebMake Documentation (version 2.4)
Built With WebMake