W3C home > Mailing lists > Public > public-xformsusers@w3.org > April 2012

Re: XForms 2.0 schema [xforms.model.content]

From: Leigh L Klotz Jr <leigh.klotz@xerox.com>
Date: Wed, 18 Apr 2012 10:07:49 -0700
Message-ID: <4F8EF4E5.5050605@xerox.com>
To: public-xformsusers@w3.org
CC: "Klotz, Leigh" <Leigh.Klotz@xerox.com>
In http://www.w3.org/MarkUp/Forms/wiki/XForms-nons-20.rnc
definition xforms.model.content:

Change

xforms.model.content =
   xforms.instance*
& xforms.schema*
& xforms.submission*
& xforms.bind*
& xforms.Actions*
& xforms.Extension?

to

xforms.model.content =
   (xforms.instance
   | xforms.schema
   | xforms.submission
   | xforms.bind
   | xforms.Actions
   | xforms.Extension)*

The existing definition allows the elements to be in any order, but 
requires all the elements of the same name to be together.

The new definition has three advantages:
1. It allows intermixing of elements (e.g., instance, schema, bind, 
instance, schema, bind)
2. It is faster to validate, avoiding the use of a long "&" chain.
3. It allows any number of xf:extension elements, not just one.
     I didn't see any prose in the recommendation limiting the number of 
extension elements in the model.

Leigh.
Received on Wednesday, 18 April 2012 17:08:34 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:48:23 UTC