Re: Spec review: possible clashes

Here's a better version with the section titles added.

1.  Which XPath? The abstract says XPath 2.0 "and higher"; the note in §6 Expressions says XPath 2.0 only; §15.1 Conforming XForms Documents requires documents to conform to XPath 1.0 and §15.4.1 XForms Model requires Model processors to support all of XPath 1.0; §15.3 Base Technologies for XForms Processors says XPath 2.0. Examples use XPath 3 features (math:sqrt, math:power, math:sin, and serialize described as the 3.0 function). Version, and whether 1.0 compatibility mode is on, changes the meaning of nearly every expression.

2.  What happens when a model expression fails. Three incompatible rules: the per-property sections (§4.4.3 The constraint Property to §4.4.6 The readonly Property: relevant → false, required → true, readonly → true, constraint → invalid, no event); §6 Expressions ("the opposite of the default", no event); §13.4.1 Error Recovery Outside Actions (property treated as absent, i.e. the default, plus xforms-expression-error, whose default action is fatal). Syntax errors on a bind give xforms-binding-error per §6 Expressions but xforms-expression-error per §13.4.1 Error Recovery Outside Actions.

3.  Recalculation from scratch is undefined. §5.6.6 Recalculate defines recalculate only relative to a change list L. Model initialization (§5.6.1 Model Initialization) just says "an update is done"; with an empty L nothing is calculated. A full recalculation appears only in the non-normative appendix 20 Recalculation Sequence Algorithm and the DOM recalculate() method. The same gap affects the recalculate action and what follows a rebuild.

4.  Unresolved IDREFs. §12.2 Resolving ID References says actions such as dispatch, send, setfocus, setindex and toggle silently do nothing, and a submit control doesn't dispatch. §14.2 Processing Common to All Actions, each action's own section, §9.8 The submit Element and appendix 25 Differences between XForms 2.0 and XForms 1.1 say xforms-action-error is dispatched (fatal by default). show and hide (§10.3.1 The show Element and §10.3.2 The hide Element) say no effect.

5.  Writing to an element that has text. §8.3.1 Data Binding says a control writing to an element with any child nodes gets xforms-binding-error, so every edit of a non-empty field would fail; the note right below it, and setvalue in §14.5 The setvalue Element, say only element children matter.

6.  Calculate versus readonly. §13.4.1 Error Recovery Outside Actions says a calculate targeting readonly content is a binding error and the value isn't modified. But §5.3.1 The calculate Property makes every calculated node readonly by default and §4.4.6 The readonly Property says readonly doesn't restrict calculate. Read literally, every calculate fails.

7.  Validity of empty values. §5.5 Validity and the glossary make an empty, non-required node valid whatever its constraints say; §4.4.3 The constraint Property says a false constraint makes the node invalid. The §4.4.3 The constraint Property wishes example (empty wish with a count constraint) depends on which is right.

8.  Repeat updating versus deferred update. §10.4.1.2 Updating requires repeat objects and the repeat index to be updated before xforms-insert/xforms-delete are dispatched, which happens synchronously inside the action. Everywhere else, UI changes happen at refresh after the outermost handler (§5.6.4 Updates), and §14.21 The refresh Element says index() is current only after a refresh.

9.  Focus loop in repeat. Focusing a control in a repeat item sets the index "as if by setindex" (§10.4.1.4 Interaction and rendering); changing the index gives focus to the repeat (§10.4.1.3 Index Processing); focusing a repeat moves focus to the first focusable control of the indexed item (§10.4.1.4 Interaction and rendering). Clicking the third field of a row would move focus to the first.

10.  Property attributes on controls. §8.3.2 Properties says a control combines its own property attributes with those of its node, but never says whether a control's relevant, required, constraint or type affects the node (and therefore submission and other controls bound to it) or only that control. §4.4.1 Restrictions makes any property on an atomic value an error, yet §9.4 The output Element recommends <output value="link" type="anyURI"/>, which attaches type to an atomic value.

Received on Friday, 20 November 2026 17:26:38 UTC