W3C home > Mailing lists > Public > public-html@w3.org > May 2007

Re[2]: Architectural Consistency Requirements for Forms

From: Dmitry Turin <html60@narod.ru>
Date: Mon, 21 May 2007 12:04:43 +0400
Message-ID: <6314195492.20070521120443@narod.ru>
To: public-html@w3.org

Good day, John.

> <form>
> <instance>
> <data>
> <planets>
> <planet>Mars</planet>
> <moons>
> <moon>Phobos</moon>

> make it easier to author forms

  Usually data are got from database,
but your data model require additional mental job
to convert attributes of records (of database) into tags (of your model).
  Imagine, that <repeat name="moons"> contain _not only one_ <input>,
but several of them, for example
 <repeat name="moon">
  <input name="name">
  <input name="diameter">
  <input name="albedo">
 </repeat>
Following data model will be better:
 <moon name="Phobos" diameter="" albedo="">
 <moon name="Deimos" diameter="" albedo="">

P.S.
Data model with names of you example:
 <planets planet="Mars">
  <moons moon="Phobos">
  <moons moon="Deimos">
 </planets> 
 <planets planet="Neptune">
  <moons moon="Triton">
  <moons moon="Nereid">
 </planets> 

P.P.S.
I have the same opinion about format of xml-data,
sending from form at <form enctype="application/x-www-form+xml">:
now data model is sophisticated.


Dmitry Turin
http://html6.by.ru
http://sql4.by.ru
http://computer2.by.ru
Received on Tuesday, 22 May 2007 13:13:34 UTC

This archive was generated by hypermail 2.3.1 : Monday, 29 September 2014 09:38:44 UTC