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

item@value

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 19 Oct 2016 13:24:55 +0200
To: "public-xformsusers@w3.org" <public-xformsusers@w3.org>
Message-ID: <op.ypkvbtdjsmjzpq@steven-aspire-s7>
I'm having a feeling of déjà vue here, but nevertheless:

@value in (almost) all cases is an alternative for the content of an  
element:

   <setfocus><control>start</control></setfocus>
   <setfocus><control value="'start'"/></setfocus>

But it doesn't work like that with <item>.

These are OK:

  <item label="Credit" value="'cc'"/>
  <item label="Credit"><value>cc</value></item>
and even
  <item label="Credit"><value value="'cc'"/></item>

but NOT

  <item label="Credit">cc</value>

Is there really a reason why this is not allowed. It looks like an obvious  
case...

Steven
Received on Wednesday, 19 October 2016 11:25:30 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 19 October 2016 11:25:30 UTC