opml -> html
January 21, 2004 5:12 AM   Subscribe

Anyone know a quick and simple way to convert opml files into html? I've found two good XSLT stylesheets, but the W3C XSLT Service seems to be fudging the links.
posted by will to Computers & Internet (6 answers total)
 
Is this a quirk of the W3C XSLT Service or a problem with the stylesheets? Have you tried linking the XSLT as a stylesheet from the OPML document and loading it in IE6 or a recent Mozilla, both of which do client-side XSLT transformation?
posted by IshmaelGraves at 5:51 AM on January 21, 2004


Good question. I'm not extremely familiar with XSLT, so I'll brush up. I'll also try IE6 and Mozilla.
posted by will at 6:37 AM on January 21, 2004


Ishmael, do you use PHP or ASP? It might lead to wider use if you used a XSL parser to parse the file using that stylesheet.

In PHP you can use the following:

<?php
ob_start("ob_gzhandler");

$opml = xslt_create();
$result = xslt_process($opml, 'opml.xml', 'opml2html.xsl');
echo $result;
xslt_free($opml);
?>

Or just put this line right after the XML declaration in the OPML file:
<?xml-stylesheet href="opml2html.xsl"?>
posted by riffola at 6:38 AM on January 21, 2004


Oops that was for will
posted by riffola at 6:40 AM on January 21, 2004


Maybe one of these?
posted by Galvatron at 11:26 AM on January 21, 2004


I'm actually the maintainer of the first one, and the W3C service works OK for me. What problem are you having with it?
posted by LukeyBoy at 4:21 PM on January 21, 2004


« Older Recommend a freeware program to check the internal...   |   Howard Dean's Concession Speech Newer »
This thread is closed to new comments.