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

Re: XForms problem

From: Swithun Crowe <swithun@swithun.servebeer.com>
Date: Tue, 23 Aug 2005 11:37:25 +0100 (BST)
To: Saran Toochinda <saran@inra.co.th>
cc: "'www-forms@w3.org'" <www-forms@w3.org>
Message-ID: <Pine.LNX.4.61.0508231050150.4472@meshach.swithun.servebeer.com>

I think the answer to your first problem might be to write an XSLT program
to add empty elements to old documents, so that the XForm can bind
controls to the elements. If you haven't finalised the structure of your
documents, then you need to edit the old ones so that the fit the new

To solve your second problem you could put a delete control in each repeat
item. This control would delete just the current repeat item. You bind
this delete control to all apart from the first item, so that the first
repeat item has no delete.

I've done a page which demonstrate this technique and another for
disabling delete on the first repeat item.


It works in Mozilla - you might need to save and rename for it to work in


On Tue, 23 Aug 2005, Saran Toochinda wrote:

> We're planning to use XForms to collect XML data (currently using Novell
> XForms Explorer for IE). The data we're collecting is company data, 1 file
> per company. The schema is change from time to time which most of the time
> is resulting in newly added data elements. The XForms controls need to be
> added accordingly to accept the new data elements. There is no problem on
> new file data entry so far but the problem arise when dealing with existing
> files. Because Xforms' controls bind to existance of element in an instance
> document. The newly added controls don't get display because no such data
> ever exists before. Do I missing something?
> One other issue is about repeat control. Usually we provide a trigger to
> insert and delete repeated element. Once we delete all elements, we have
> way(s) to insert it back again?
> Many thanks in advance
> Saran
Received on Tuesday, 23 August 2005 10:37:46 UTC

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