Return-Path: X-Original-To: apmail-corinthia-dev-archive@minotaur.apache.org Delivered-To: apmail-corinthia-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 364D617EF9 for ; Sun, 8 Mar 2015 15:21:22 +0000 (UTC) Received: (qmail 57031 invoked by uid 500); 8 Mar 2015 15:21:21 -0000 Delivered-To: apmail-corinthia-dev-archive@corinthia.apache.org Received: (qmail 57003 invoked by uid 500); 8 Mar 2015 15:21:21 -0000 Mailing-List: contact dev-help@corinthia.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@corinthia.incubator.apache.org Delivered-To: mailing list dev@corinthia.incubator.apache.org Received: (qmail 56992 invoked by uid 99); 8 Mar 2015 15:21:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2015 15:21:21 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of franzdecopenhague@outlook.com designates 65.55.34.17 as permitted sender) Received: from [65.55.34.17] (HELO COL004-OMC1S7.hotmail.com) (65.55.34.17) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 08 Mar 2015 15:21:16 +0000 Received: from COL401-EAS340 ([65.55.34.8]) by COL004-OMC1S7.hotmail.com over TLS secured channel with Microsoft SMTPSVC(7.5.7601.22751); Sun, 8 Mar 2015 08:19:51 -0700 X-TMN: [9c6WvTPKb74JHcPWUBmoP4w7c6eWXk52] X-Originating-Email: [franzdecopenhague@outlook.com] Message-ID: From: Franz de Copenhague To: Subject: [Document Model] RE: Initial questions about web-based application Date: Sun, 8 Mar 2015 11:20:07 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 15.0 Thread-Index: AdBZrQWuqlgwwM6iREC//HNYXuAlow== Content-Language: en-us X-OriginalArrivalTime: 08 Mar 2015 15:19:51.0964 (UTC) FILETIME=[52F65DC0:01D059B3] X-Virus-Checked: Checked by ClamAV on apache.org =20 > > Is there any Document model defined? I mean for Document model an > > abstract model that's defined the structure of the document like > > sections, paragraphs, lists, text, fields, tables, images and = styles. >=20 > The document model is HTML5 - that is, it=E2=80=99s identical to what = the browser > uses. >=20 > This gives us the vast majority of what we need for an editor = =E2=80=9Cfor free=E2=80=9D, in > that it is provided by the web browser or embedded web view. >=20 > The editing library consists of JS code that conducts all editing = operations > using W3C DOM APIs. It=E2=80=99s basically the same sort of thing as = CKEditor and > various other similar web-based rich text editors commonly used on > wikis/content management systems/blogging engines. >=20 > =E2=80=94 > Dr Peter M. Kelly I agree that HTML5 is a good model to feed into the editing library to = support the edition of paragraphs, lists, text, tables, images. But what = about sections, headers, footers, fields (author, date, etc ), styles = and themes? All of them are document features implemented either docx or = odt and so far they are not supported by DocFormat API.=20 For example, If the section feature is implemented in the web app and = the user creates a section with 3 columns. It can be rendered like this = example = http://www.w3schools.com/css/tryit.asp?filename=3Dtrycss3_column-count, = but somehow DocFormat needs to know that it is a section to translate to = docx or odt.=20 HTML5 is good to serialize from/to DocFormat api, and good to be edited = by the editing library but web app will need a model/controller on top = of the HTML DOM to support same features. Any thoughts? -J