Structural schema validation and datatype validation of first text node

All,

If I understand sections "4.3.5 The xforms-revalidate Event" and
"6.1.1 The type Property" of XForms 1.1, XForms only considers
datatypes during revalidation.

A few questions then:

1. Does this mean that in XForms, we never perform full structural
    validation, even before submission? If so, where is this specified?

2. 6.1.1 says "The type model item property is not applied to instance
    nodes that contain child elements.". However, controls bound to
    elements store and retrieve data as the first child text node of
    the element, see 8.1.1:

      "returns the string-value of the first text child node"

    and 10.8:

      "the first text node is replaced with one corresponding to the
       new value"

    Wouldn't it make sense, for consistency, to say that type
    validation applies to the first child text node (empty string if
    none) of an element?

    I don't have a very strong opinion on this. Maybe doing so would
    violate expectations of schema validation? But here, we are only
    using datatypes to validate captured data, not validating
    structure, so I am not sure if this is a concern.

    I am wondering if this was considered at all.

-Erik

-- 
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/

Received on Friday, 25 May 2007 18:08:20 UTC