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

toggle

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Tue, 08 Nov 2016 14:41:23 +0100
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Message-ID: <op.yql2y9u6smjzpq@steven-aspire-s7>
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 13:41:59 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 8 November 2016 13:41:59 UTC