W3C home > Mailing lists > Public > www-forms@w3.org > June 2000

XForms money data type

From: Jerome Marc <marcjero@hotmail.com>
Date: Sun, 18 Jun 2000 08:12:36 PDT
Message-ID: <20000618151236.76717.qmail@hotmail.com>
To: www-forms@w3.org
Hello,

I've written an xslt stylesheet that transforms XForm declaration + HTML 
presentation page into a DHTML page that implements the XForms behaviours. 
The targets are IE and Netscape 4.0 browsers.

I need to use the money data type with two currencies. But the features 
defined in the draft are not enough for me. I can specify one or more 
currencies but only one min and max value. The trouble is that switching the 
currency will probably change these limits. I think the attribute decimals 
can be different too in two different currencies. I suggest to define 
attributes min, max et decimals as space separated lists like attribute 
currency is.

XForms is able to define logic (model) and data (instance) but there is 
nothing clear about presentation. I imagine this is not a goal for XForms, 
interface should link to model definition and instance data. XForms define 
the fields of the form but a field is sometimes linked to a label. Today, I 
write these labels at the presentation step but it's boring because labels 
should be the same whatever output (HTML, WML, ...) you choose. Moreover, 
XForms logic can generate presentation itself (displaying message popup), so 
XForms logic must knows the labels.
In the Javascipt example, the XML node names are used as label. This can't 
be  suitable to multilingual applications or even because of XML node name 
syntax limits. Maybe I'm wrong and you'll give me a better point of view.

I'm sorry about my very poor english. I hope I'm clear enough and you'll 
find answer to my questions.

Regards,

Jerome





________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
Received on Sunday, 18 June 2000 11:13:09 GMT

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