W3C home > Mailing lists > Public > www-archive@w3.org > December 2001

RSS To XHTML Using N3

From: Sean B. Palmer <sean@mysterylights.com>
Date: Fri, 7 Dec 2001 21:39:07 -0000
Message-ID: <01fd01c17f67$b83dc720$14b90150@localhost>
To: "Bijan Parsia" <bparsia@email.unc.edu>
Cc: <www-archive@w3.org>
Files are attached. The conversion utility: <<rsstoxhtml.n3>>; the
input: <<xmlhack.n3>>; and the XHTML output <<rss.html>>. To run it:-

  TARGET=xmlhack.n3; cwm rsstoxhtml.n3 --think --strings > rss.html

Alternatively, de-comment the "<xmlhack.rss> a :TargetDocument ."
line, and run as:-

   cwm rsstoxhtml.n3 --think --strings > rss.html

Simple, and it runs pretty quickly. It's only a simple scraping of
data; it doesn't really look into the RSS structure.

cf. http://www.w3.org/2001/03/earl/rdfstoxhtml.n3
and http://www.xml.com/2001/07/25/examples/scriptresult.html

Cheers,

-- 
Kindest Regards,
Sean B. Palmer
@prefix : <http://webns.net/roughterms/> .
:Sean :hasHomepage <http://purl.org/net/sbp/> .


Received on Friday, 7 December 2001 16:40:30 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 7 November 2012 14:17:15 GMT