ODF on the web
An especially interesting project that was presented is WebODF, which wants to
bring ODF to the web. Jos van den Oever started from the observation that a
lot of office suites are moving into the "cloud". Examples are Microsoft
Live Office, Google Docs, and Zoho. But where are the free software
alternatives for the cloud? For OpenOffice.org, KOffice, AbiWord, and
Gnumeric, there are none that have a cloud version with ODF support. That
was the motivation for Jos to start a project to fill in this gap and let
users view and edit ODF documents on the web without losing control of the
document into some company's servers.
The strategy Jos followed was to use just HTML and JavaScript for the
web application. The application then loads the XML stream of the ODF
document as is into the HTML document and puts it into the DOM
tree. Styling is done by applying CSS rules that are directly derived from
the <office:styles> and
<office:automatic-styles> elements in the ODF document. That
is how WebODF was born; it is a project with the initial goal of creating a simple ODF viewer and editor for offline and online use, implemented in HTML5.
The small code base consists of one HTML5 file and eight JavaScript
files, each of which is a few hundred lines of code. The most interesting
part is that it doesn't need server-side code execution: the JavaScript
code is executed in the user's browser and saving the document to the web
server is done using WebDAV. It supports both the Gecko and WebKit HTML engines. There is also an implementation on top of QtWebKit, which is for better desktop integration, and an ODFKit implementation. This means that WebODF is an easy way to add ODF support to almost any application, be it in HTML, Gtk, or QML. KO GmbH has received funding from NLnet to improve the current WebODF prototype and see how far the idea goes. Interested readers can try the online demo.