opml -> html
January 21, 2004 5:12 AM
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.
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
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
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
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
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.
posted by IshmaelGraves at 5:51 AM on January 21, 2004