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

Re: Invitation to contribute examples

From: Roland Merrick <roland_merrick@uk.ibm.com>
Date: Thu, 10 Jan 2002 11:16:01 +0000
To: Jérôme Nègre <jerome.negre@e-xmlmedia.fr>
Cc: "Steven Pemberton" <steven.pemberton@cwi.nl>, www-forms@w3.org
Message-ID: <OFA664DF6E.00A710D5-ON80256B3D.003C95FC@portsmouth.uk.ibm.com>

Greetings, things are not as bad as people seem to be implying here. The
statement that a constraint in one model cannot make reference to instance
data in another model is true. However, the December Draft allowed the
<submitInfo> to specify that only a portion of the <instance> should be

This allows an instance to contain the data that is to be submitted as well
as elements that will not be submitted. The latter category can be used for
"working variables".

The example you use to illustrate the problem is incomplete. Let assume
that you only intend to "submit" the instance data in model id="m2", if
this is the case then <i:dad /> could be moved to the second model and
excluded from what is submitted by judicious use of the submitInfo which
only identifies <i:mom /> for submission.

I know this doesn't fix the cross model issue that you have recognised but
is does reduce the number of practical, rather than theoretical, situations
where the form designer might have had to resort to two models.

Regards, Roland
Ease of Use Strategy
Tel: +44 (0)1926-465440,   Fax: +44 (0)1926-465323, Mobile:  +44
Internet: Roland_Merrick@uk.ibm.com
Ease of Use:     http://www.ibm.com/easy/           http://w3.ibm.com/easy/

                    Jérôme Nègre                                                                            
                    <jerome.negre@e-xm       To:     "Steven Pemberton" <steven.pemberton@cwi.nl>,          
                    lmedia.fr>                <www-forms@w3.org>                                            
                    Sent by:                 cc:                                                            
                    www-forms-request@       Subject:     Re: Invitation to contribute examples             
                    08/01/2002 16:34                                                                        

Here's a little example showing that XForms can handle dependencies between
several instances:


  <xform:model id="m1">
   <xform:bind ref="i:dad/i:son2"

  <xform:model id="m2">
   <xform:bind ref="i:mom/i:daughter"

  <xform:input model="m1" ref="i:dad/i:son1">
   <xform:caption>Change me</xform:caption>

Function instance() being used to retrieve the instance node of a given

Jérôme Nègre

PS : As you might have seen, this document doesn't work with the last
but I'm sure it will with the following one ;o)
Received on Thursday, 10 January 2002 06:18:23 UTC

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