W3C home > Mailing lists > Public > public-xformsusers@w3.org > November 2016

Re: toggle

From: Erik Bruchez <ebruchez@orbeon.com>
Date: Tue, 8 Nov 2016 09:40:31 -0800
Message-ID: <CAAc0PEUQR+cB5qCtqQrbcFDU1CWiWeBf+ir7mk2m1TocpNpdCw@mail.gmail.com>
To: Steven Pemberton <steven.pemberton@cwi.nl>
Cc: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Correct.

On Tue, Nov 8, 2016 at 5:41 AM, Steven Pemberton <steven.pemberton@cwi.nl>
wrote:

> Just checking we agree on behaviour, since the spec is not completely
> unambiguous, and I want to fix that.
>
> <toggle> works with case@id, and @caseref works with case@name.
>
> So
>
>  <instance>
>     <data xmlns="">
>        <c/>
>     </data>
>  </instance
>
>  <switch caseref="c">
>    <case id="a" name="b">...</case>
>    <case id="b" name="a">...</case>
>  </switch>
>
> Then <setvalue ref="c" value="'a'"/>
> and  <toggle case="a"/>
>
> would select different cases.
>
> Right?
>
> Steven
>
>
Received on Tuesday, 8 November 2016 17:41:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 8 November 2016 17:41:24 UTC