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

definition xforms.model.content:


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


xforms.model.content =
   | 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.


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