- From: Thierry Michel <tmichel@w3.org>
- Date: Tue, 3 Sep 2002 18:18:16 +0200
- To: "GILCHRIST Roland" <Roland.Gilchrist@state.or.us>, <www-forms@w3.org>
Moderator: Sent to www-forms@w3.org ----- Original Message ----- From: "GILCHRIST Roland" <Roland.Gilchrist@state.or.us> To: "IPM Return requested (Receipt notification requested)" <NBhatia@sapient.com>; "IPM Return requested (Receipt notification requested)" <www-forms@w3.org> Sent: Tuesday, August 06, 2002 10:01 PM Subject: [Moderator Action] Re: XForms WD 20020118 - Questions about instanceData > > > Please remove my address from your future mailings. Thank you very much. > roland.gilchrist@state.or.us > > > > >>> NBhatia@sapient.com 01/20/02 01:25PM >>> > > I am just starting to read the XForms specification and I have the following > questions. Hope the group can clarify these for me. > > 1) Section 2.4 - Providing XML Instance Data > This section provides an example of an instance element inside the model > element: > > <xforms:model> > <xforms:instance> > <payment as="credit" xmlns="http://commerce.example.com/payment"> > <cc/> > <exp/> > </payment> > </xforms:instance> > <xforms:submitInfo action="http://example.com/submit" method="post"/> > </xforms:model> > > What is the format of instanceData produced by form. Is it the same as that > shown in section 2.3? > > or something like this? > <payment as="credit"> > <cc>123456789012345</cc> > <exp>2001-08</exp> > </payment> > > or something like this? > <instanceData> > <payment as="credit"> > <cc>123456789012345</cc> > <exp>2001-08</exp> > </payment> > </instanceData> > > 2) Section 2.5 - Constraining Values > If the user selects "Cash", does the returned instance data contain the "cc" > and "exp" elements? > > 3) Is it an expectation that the XForms processor will understand user > defined data types? For example, if my XForms application uses a class > called Employee that has two members: a name (String) and an address (a > nested type), do I have to specify this data structure somewhere? Or is this > implicit in instance data, something like this: > > <xforms:model> > <xforms:instance> > <employee> > <name/> > <address> > <line 1/> > <line 2/> > <city/> > <state/> > <zip/> > </address> > </employee> > </xforms:instance> > <xforms:submitInfo action="http://example.com/submit" method="post"/> > </xforms:model> > > >From section 2.5, it appears that the data types can be specified in the > user interface (as constraints). Can they be specified in the model, which > seems like the logical place to define them? > > Thanks. > > Naresh Bhatia > Sapient > One Memorial Drive, Cambridge, MA 02142 > Tel: 617-761-1771 Fax: 617-621-1300 > Email: nbhatia@sapient.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >
Received on Tuesday, 3 September 2002 12:18:32 UTC