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

RE: Should instance element be optional?

From: David E. Cleary <davec@progress.com>
Date: Tue, 15 Jan 2002 09:29:42 -0500
To: <werner.donne@re.be>, <www-forms@w3.org>
Message-ID: <NDBBIOBPAGDGFJAHFCGGMEBPCJAA.davec@progress.com>
> According to the schema for XForms it is not necessary to have an
> instance element in the
> model. How can the form then be bootstrapped? The instance data
> would be empty after
> initialisation and the only action I have found that can create
> new elements is insert. That
> action, however, needs elements in the instance element to copy
> to the instance data.

The instance data can be syntysised based on the UI bindings. I.E., you have
5 text boxes. Your instance is:

<instance>
<text1/>
<text2/>
<text3/>
<text4/>
<text5/>
</instance>

Dave
Received on Tuesday, 15 January 2002 09:29:47 GMT

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