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

RE: XForms Data model and presentation

From: Micah Dubinko <MDubinko@cardiff.com>
Date: Mon, 21 Aug 2000 10:10:40 -0700
Message-ID: <60351C2283C9D3118F2C00805F0D4AA63E3A20@csmail.cardiff.com>
To: www-forms@w3.org
Cc: "'juan.e.valera@se.abb.com'" <juan.e.valera@se.abb.com>
Juan,

Thanks for checking out XForms.

We're currently in the process of defining exactly how to define a form
model in a way that's compatible with XML Schema. We're also still working
on ways to "bind" the user interface to this model.

Like yourself, we too open to good ideas in this area. :-) Stay tuned.

Micah Dubinko

-----Original Message-----
From: juan.e.valera@se.abb.com [mailto:juan.e.valera@se.abb.com]
Sent: Monday, August 21, 2000 5:51 AM
To: www-forms@w3.org
Subject: XForms Data model and presentation




Dear All,

I am quite interested in the XForm recommendation and I am trying to apply
the main concepts in my present applications. I have found some problems
defining the links between the data model and presentation layer.

I describe the data model using schema and I use a set of elements that I
have defined for the user interface (like checkboxes, pulldown list, input,
etc).

For example:

// Data model something like this-
<ElementType name="customer">
    <ElementType name="name" type="string" />
    <ElementType name="address" >
     <ElementType name="street" type="string"/>
     <ElementType name="city" type="string"/>
    </ElementType>
    <ElementType name="zipCode" type="int"/>
</ElementType>

// Presentation
<form action="/cgi-bin/customers"  method="post">
     Name: <input name="name"/>
     Street address:<input name="street"/>
     City: <input name="city"/>
     Zip:<input name="zipCode"/>
<button type="submit"/>
</form>

Form input "street" is linked to the element type "customer.address.street"
in data model.

I have not a clear idea of how to link these elements to their type
definition, in the data model, so I will be able to perform some input
validation.

My idea is to use XSL to process the data model + presentation to add HTML
tags and include the javascript code to perform the validation regarding to
the schema.

Thank you in advance and I am looking forward to get some good ideas or
useful references.

Best regards,

Juan E. Valera
Received on Monday, 21 August 2000 13:10:05 GMT

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