- From: Tomayko, Ryan <Ryan_Tomayko@stercomm.com>
- Date: Tue, 6 Nov 2001 11:03:22 -0500
- To: www-forms@w3.org
- Message-ID: <5FD6397E455FD4118BAE00062938354002C900D4@SCIDUBMSG02>
Micah leaked an early version of the schema. Some of the changes include changing the xform element name to model and changing the model element name to schema. See the attached schema for more info. - Ryan -----Original Message----- From: Rodrigue Vaudan [mailto:vaudrodr@students.hevs.ch] Sent: Tuesday, November 06, 2001 2:35 AM To: www-forms@w3.org; Micah Dubinko Subject: Re: Model properties Thank you for your answer. Just one last question about your answer : you have put the tag <xforms:instance> as a child of <xforms:model>. But I have read on the WD of the W3C that the tag <model> is a child of <xforms:xform>. Could I correct it as follow : <xforms:xform> <xforms:instance> <my:root> <my:firstname/> <my:lastname/> <my:address/> </my:root> </xforms:instance> <xforms:model> <xforms:bind ref="root/firstname" required="true"/> <xforms:bind ref="root/address" required="true"/> </xforms:model> </xforms:xform> Rodrigue Vaudan ----- Original Message ----- From: "Micah Dubinko" <MDubinko@cardiff.com> To: "'Rodrigue Vaudan'" <vaudrodr@students.hevs.ch>; <www-forms@w3.org> Sent: Monday, November 05, 2001 7:21 PM Subject: RE: Model properties > If I understand correctly, you would want something like this: > > (xforms: represents XForms namespace, my: represents some other instance > data namespace) > > <xforms:model> > <xforms:instance> > <my:root> > <my:firstname/> > <my:lastname/> > <my:address/> > </my:root> > </xforms:instance> > <xforms:bind ref="root/firstname" required="true"/> > <xforms:bind ref="root/address" required="true"/> > </xforms:model> > > <!-- note that 'required="false"' is the default, and thus not needed as > markup for lastname --> > > With the instance separated, you could easily grab the initial instance data > from an XML database or any server-side process (for instance to provide > initial values). Then you'd have: > > <xforms:model> > <xforms:instance xlink:href="http://my.server/get-instance"/> > <xforms:bind ref="root/firstname" required="true"/> > <xforms:bind ref="root/address" required="true"/> > </xforms:model> > > Thanks, > > .micah > > -----Original Message----- > From: Rodrigue Vaudan [mailto:vaudrodr@students.hevs.ch] > Sent: Monday, November 05, 2001 8:19 AM > To: www-forms@w3.org > Subject: Model properties > > > If I have an instance data as follow : > > <instance> > <root> > <firstname /> > <lastname /> > <adress /> > </root> > </instance> > > That's right if I put this in the model ? : > > <model> > <root> > <firstname required="true" /> > <lastname required="false" /> > <adress required="true" /> > </root> > </model> > > The fields firstname and adress are required in the form. Could you correct > it if it's not correct ? > Thanks > > Rodrigue Vaudan >
Attachments
- application/octet-stream attachment: XForms-Schema.xsd
Received on Tuesday, 6 November 2001 11:04:38 UTC