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

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