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

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