W3C home > Mailing lists > Public > www-forms@w3.org > August 2006

multiple datatypes on a single bound node

From: Aaron Reed <aaronr@us.ibm.com>
Date: Wed, 23 Aug 2006 16:56:59 -0500
To: www-forms@w3.org
Message-ID: <ecij09$1t7$1@sea.gmane.org>

Hi all,

I saw a discussion thread back in April about whether there is a 
precedence order for a situation when a bound instance node has more 
than one type applied to it (schema type, a xsi:type and a type MIP). 
And I assume that the errata (#10) in the second edition of the spec 
arose out of that discussion, so now we know how to handle validation in 
that situation.

But one point was raised in the discussion thread that I didn't see a 
clear answer for.  Consider this scenario...I have a xsi:type="integer" 
on an instance data node, a type="xsd:date" MIP applying to the same 
node and a xf:input is bound to that node.  According to the errata, I 
know to mark the node as invalid since it doesn't validate according to 
all of the types applied to the node.  But I don't know what control to 
bind to the instance data.  Do I bind my control based off of the 
integer type or the date type?

I can see where the WG (and thus the spec) might want to stay mum on 
this subject since binding a particular control based on type is 
implementation specific, but I was wondering if any consensus has been 
reached by implementors?  This is something that I'd think we'd want to 
agree on since instance replacement, for example, could have a 
dramatically different visual result on two different processors if one 
went one way and one goes the other.

Any thoughts appreciated.

Thanks,
--Aaron
Received on Wednesday, 23 August 2006 22:06:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:22:06 GMT