- From: Steven Pemberton <steven.pemberton@cwi.nl>
- Date: Fri, 20 Nov 2026 11:11:38 +0000
- To: XForms <public-xformsusers@w3.org>
1. Which XPath? The abstract says XPath 2.0 "and higher"; the note in §6 says XPath 2.0
only; §15.1 requires documents to conform to XPath 1.0 and §15.4.1 requires Model
processors to support all of XPath 1.0; §15.3 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–4.4.6: relevant → false, required → true, readonly → true,
constraint → invalid, no event); §6 ("the opposite of the default", no event); §13.4.1
(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 but
xforms-expression-error per §13.4.1.
3. Recalculation from scratch is undefined. §5.6.6 defines recalculate only relative to a
change list L. Model initialization (§5.6.1) just says "an update is done"; with an empty L
nothing is calculated. A full recalculation appears only in the non-normative appendix
20 and the DOM recalculate() method. The same gap affects the recalculate
action and what follows a rebuild.
4. Unresolved IDREFs. §12.2 says actions such as dispatch, send, setfocus, setindex and
toggle silently do nothing, and a submit control doesn't dispatch. §14.2, each action's
own section, §9.8 and appendix 25 say xforms-action-error is dispatched (fatal by
default). show and hide (§10.3.1–2) say no effect.
5. Writing to an element that has text. §8.3.1 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, say only element children matter.
6. Calculate versus readonly. §13.4.1 says a calculate targeting readonly content is a
binding error and the value isn't modified. But §5.3.1 makes every calculated node
readonly by default and §4.4.6 says readonly doesn't restrict calculate. Read literally,
every calculate fails.
7. Validity of empty values. §5.5 and the glossary make an empty, non-required node
valid whatever its constraints say; §4.4.3 says a false constraint makes the node invalid.
The §4.4.3 wishes example (empty wish with a count constraint) depends on which is
right.
8. Repeat updating versus deferred update. §10.4.1.2 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), and §14.21 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); changing the index gives focus to the repeat (§10.4.1.3); focusing
a repeat moves focus to the first focusable control of the indexed item (§10.4.1.4).
Clicking the third field of a row would move focus to the first.
10. Property attributes on controls. §8.3.2 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 makes any property on an atomic
value an error, yet §9.4 recommends <output value="link" type="anyURI"/> , which
attaches type to an atomic value.
Received on Friday, 20 November 2026 11:11:50 UTC