Alternative HTML output

Roland Küffner newsletter at rolandkueffner.de
Wed Jan 26 12:58:55 PST 2005


Hi all,

> It would be great to have a lean-and-mean HTML export which simply
> put the text into HTML lists, with an additional option to ignore
> all the formatting, colours, fonts, etc.

OO provides OPML-export functionality, which is quite close to 
lean-mean html. It's an XML-format and can easily be transformed to 
HTML

Consider this outline structure:

Topic
row1
	row2
	row3
row4
	row5
		row6
		row7
	row8
	row9
row10

The OPML-version of this outline looks like this:
<?xml version="1.0" encoding="MACINTOSH"?>
<opml version="1.0">
   <head>
     <title>test</title>
     <expansionState>0,3,4</expansionState>
   </head>
   <body>
     <outline text="row1">
       <outline text="row2"/>
       <outline text="row3"/>
     </outline>
     <outline text="row4">
       <outline text="row5">
         <outline text="row6"/>
         <outline text="row7"/>
       </outline>
       <outline text="row8"/>
       <outline text="row9"/>
     </outline>
     <outline text="row10"/>
   </body>
</opml>

Hints for HTML-conversion:
1) (At least) Mozilla based browsers can open XML (therefor also OPML) 
files right away. Associate a stylesheet with it and style the it with 
CSS.

2) With a few 'search & replace' actions this can easily be transformed 
into a HTML <ul><li>...-list.

3) One can also transform the OPML with a XSLT processor. See
http://www.netcrucible.com/xslt/opml.html
for instructions. The site provides also javascript for 
collapsing/expanding.



Happy outlining!

roland




More information about the OmniOutliner-Users mailing list