W3C home > Mailing lists > Public > public-xformsusers@w3.org > March 2017

Re: references and dependency

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Tue, 28 Feb 2017 22:13:48 -0800
Message-ID: <CAAc0PEWT83Qo7ZXKEOiiSGEqTGYUK3orE1gKBzJFzi+h6UA3SA@mail.gmail.com>
To: Steven Pemberton <steven.pemberton@cwi.nl>
Cc: XForms <public-xformsusers@w3.org>
>
> By the way, it is certainly possible to improve on the above. For example,
> allowing MIPs to be part of the dependency graph would be useful.
>
> Can you give an example?
>

Currently validation follows calculations including computing required,
relevant, and readonly. Without changing that, here is an example where the
validity of a node could depend on its relevance using the `relevant()`
function:

    <xf:bind ref="b" relevant="../a = 42"/>
    <xf:bind ref="c" constraint="relevant(../b)"/>

Further, if recalculate and revalidate were unified, the opposite might be
possible:

    <xf:bind ref="b" constraint=". = ../a"/>
    <xf:bind ref="c" relevant="valid(../b)"/>

This can create cycles, which would have to be detected.

-Erik
Received on Wednesday, 1 March 2017 06:14:41 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:37:47 UTC