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

Last Call Comment - Links in model instance

From: Tom Keane <tkeane@cardiff.com>
Date: Fri, 22 Feb 2002 16:16:53 -0800
Message-ID: <E840F0B7E6189547BDB91DA8BF2228AB3BE5B2@csmail.cardiff.com>
To: "'www-forms-editor@w3.org'" <www-forms-editor@w3.org>
This proposal addresses two cases that come up in form design:

1. The need for 'temporary' variables
2. Pulling instance data from more than one source.

The current XForm spec allows the 'instance' node of model to either define
inline content or to declare an XLink from which to pull the instance data.
This seems limiting. It does not allow the form designer to add any
variables to the instance data and it does not allow instance data to be
pulled from more than one source.

I would propose a method to insert XML data pulled from an XLink reference
into a sub-tree of model/instance.

  <hiddenvariable1 />
  <hiddenvariable2 />
  <zipcodeinfo />
  <profiledata />
<externalInstanceData ref="zipcodeinfo" xlink:href="..." />
<externalInstanceData ref="profiledata" xlink:href="..." />

When the model is initialized, whatever XML data is retrieved from the
xlink:href would be inserted under the node indicated by the ref attribute.

Tom Keane
Director, Core Technologies
www.cardiff.com <http://www.cardiff.com> 
tkeane@cardiff.com <mailto:tkeane@cardiff.com> 
Received on Friday, 22 February 2002 19:20:10 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:25:03 UTC