Blog Archives

OPML to HTML List

I sometimes use programs like OmniOutliner which can generate OPML. Last night I needed to send someone a Word document with one of my outlines, but I wasn't satisfied with OmniOutliner's export of my code, so I created the following XSL file. I then copied it into Google Docs to generate the Word document.

This will convert OPML to an ordered list (<ol>). It is purposefully simple: it ignores the expanded state, etc. Right now notes are tacked on in square brackets at the end of the list item, but that can be easily changed in the file.

I have released this with the MIT license.

opml.xsl
XSL stylesheet, 4KB
opml.xsl.zip
Zipped XSL stylesheet, 4KB

Posted: March 18, 2008 @ 13:45
Tagged: code, html, opml, scripts, xml

Comments

No comments have been added