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

RE: Empty Repeats

From: Roland Merrick <roland_merrick@uk.ibm.com>
Date: Fri, 24 Jan 2003 14:47:37 +0000
To: "'Guillermo MenÚndez'" <gmcorral@terra.es>
Cc: "'www-forms@w3.org'" <www-forms@w3.org>, "Klotz, Leigh" <Leigh.Klotz@pahv.xerox.com>
Message-ID: <OF1113A8A4.65A54DA2-ON80256CB8.0050DC0B@portsmouth.uk.ibm.com>
Greetings, another approach would be write an event handler for the 
xforms-initialize-done event that simply deletes the first, and in this 
case only, node.

Regards, Roland
----- Forwarded by Roland Merrick/UK/IBM on 24/01/2003 14:43 -----

"Klotz, Leigh" <Leigh.Klotz@pahv.xerox.com>
Sent by: www-forms-request@w3.org
22/01/2003 19:22

        To:     'Guillermo MenÚndez' <gmcorral@terra.es>, "'www-forms@w3.org'" 
        Subject:        RE: Empty Repeats


Also try one of these:

<bind nodeset="items/item[1]" relevant="false()" />

<bind nodeset="items/item" relevant="positition() &gt; 1"/>

-----Original Message-----
From: Guillermo MenÚndez [mailto:gmcorral@terra.es]
Sent: Tuesday, January 21, 2003 5:04 AM
To: www-forms@w3.org
Subject: Empty Repeats


I was trying to find a way to make a Repeat structure that could have no
initial elements, or at least that could display no elements when the form
is loaded. This is because I'm using XForms to process external documents
that maybe not always provide instance data for some of the Repeats. I 
looked in the specification and it clearly says that initial instance data
must be provided to construct the members to the homogeneous collection, 
I though that maybe there is a way such as copying the repeat data from an
inline instance, but I couldn't make it work. If anyone have any idea it
would be very appreciated.

Another issue is that when deleting the last element of a Repeat 
at least in X-smiles, it doesn't let you insert new nodes anymore, until 
form is reloaded. Maybe this is only a bug of X-smiles, because the
specification doesn't say anything about this.


Received on Friday, 24 January 2003 09:50:54 UTC

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