W3C home > Mailing lists > Public > public-xformsusers@w3.org > February 2019

Re: ACTION-2228: Find a different example for typed values (section 6.2)

From: Steven Pemberton <steven.pemberton@cwi.nl>
Date: Wed, 20 Feb 2019 16:39:07 +0100
To: public-xformsusers@w3.org, "XForms Users Community Group Issue Tracker" <sysbot+tracker@w3.org>
Message-ID: <op.zxiofhvnsmjzpq@steven-xps>
How about this:

   <model xmlns="http://www.w3.org/2002/xforms">
     <instance>
       <data xmlns="">
	<t>00:00:00</t>
	<t>24:00:00</t>
       </data>
     </instance>
     <bind ref="t" type="time"/>
   </model>

   <group xmlns="http://www.w3.org/2002/xforms">
     <output value="if(t[1] = t[2], 'typed', 'untyped')"/>
   </group>

If the typed values are passed, then the comparison is between times, and  
00:00:00 is the same as 24:00:00

If just the strings are passed, then the two strings are unequal.

Steven

On Wed, 20 Feb 2019 15:13:59 +0100, XForms Users Community Group Issue  
Tracker <sysbot+tracker@w3.org> wrote:

> ACTION-2228: Find a different example for typed values (section 6.2)
>
> https://www.w3.org/2005/06/tracker/xforms/actions/2228
>
> Assigned to: Steven Pemberton
>
>
>
>
>
>
>
Received on Wednesday, 20 February 2019 15:39:31 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 20 February 2019 15:39:32 UTC