TreeCalc : Towards Programmable Structured Documents

A programmable structured document is a structured document with dynamically calculated components that can be specified by users in a functional programming language. TreeCalc, a tree version of spreadsheet, is an experimental system demonstrating the notion, basing on the XML viewer and editor, Fungus, developed by Justsystem. TreeCalc takes an XML document representing, for example, a math expression and displays the expression together with the computed result, or a document with tagged chapter and section titles and computes the table of contents of the document. The result of the expression or the table of contents is automatically updated when the user edits the document.