W3C home > Mailing lists > Public > www-forms@w3.org > July 2002

RE: XForms datatypes

From: Micah Dubinko <MDubinko@cardiff.com>
Date: Tue, 23 Jul 2002 11:30:16 -0700
Message-ID: <E840F0B7E6189547BDB91DA8BF2228AB28C622@csmail.cardiff.com>
To: "'Sylvain VILLANI'" <villani@lirmm.fr>, www-forms@w3.org


1. xforms:listitems is useful for simpleContent lists, where the instance
would look like:

<my:flavours>chocolate vanilla strawberry</my:flavours>

In many cases, it's better to use markup to distinguish items in the list,
but if you need it all in one place, listitems is it.

2. Datatypes are a part of validation. For a node to be considered 'valid',
it has to satisfy any facets attached.

3. Derived types aren't treated specially. Exactly as defined in XML Schema
part 2.
(For your example, a union of positiveInteger and negativeInteger, allowable
values would be any integer but zero)
It's also possible to get carried away with restriction, and have a datatype
that has an empty set for the allowed value space, and would thus never be
valid from XForms viewpoint.
We don't recommend doing this. :-)

4. The schema "lexical space", including pattern restrictions, applies to
the XML instance data. The form control is expected to present this to the
user in whatever way makes sense.

So, it would be a poor implementation indeed that forced users to type
2002-07-23 for a date, instead of (say) a graphical calendar control.



-----Original Message-----
From: Sylvain VILLANI [mailto:villani@lirmm.fr]
Sent: Tuesday, July 23, 2002 4:55 AM
To: www-forms@w3.org
Subject: XForms datatypes

Hi list,

I've got few questions concerning datatypes.
Perhaps certain answers are previously given in this list or in official
documents. For these one I excuse me and just ask you to indicate me the
source where I can get such information. 
Thank you.

--1st question:

After reading the XForms WD 1.0, I don't really see the interest of the
2 XForms datatypes and how to use it: listItem and listItems (5.2).
Is anyone can give an example of its utilization and then show the
interest of such datatype ?

--2nd question:

Are datatypes exist only to give a type to the datas, or a validation
must be done before the submission of the form ?
eg. for an input which expect an integer, is the xforms processor have
to check this constraint ?

--3rd question:

If yes, how the validation is performed for badly derived types ?
eg. a derived type defined by the union of a type which expect a
strictly-positive-value and a type which expect a

--4th and last question:

For datatypes as date, is the control must show to the user a special
format (defined by pattern facet for example) ?
eg.  Birthday      ../../19..

Thanks for your help
Sylvain (LIRMM, France)
Received on Tuesday, 23 July 2002 14:30:28 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:06 UTC