From: "Konstantin Piroumian" <[EMAIL PROTECTED]>
> From: "Jakob Praher" <[EMAIL PROTECTED]>
>
>
> Also see how the input controls are bound to the instance data using
binding
> expressions:
>
http://www.w3.org/TR/2002/CR-xforms-20021112/slice3.html#structure-bind-elem
> ent

Minor addition to this point. Usually, an XForms form contain a defaul
'instance' data which is referenced by simple expressions like
'/customer/name', but you are allowed to use multiple 'instance' data
objects and you can reference particular 'instance' using instance()
function, e.g.:

The instance:<xforms:instance xmlns="" id="orderform">
  <orderForm>
    <shipTo>
      <firstName>John</firstName>
    </shipTo>
  </orderForm>
</xforms:instance>
and the reference:ref="instance('orderform')/shipTo/firstName"
The default instance in case of XMLForms is the underlying Form object, so
this will require support for multiple instances.As for the function in
referencing expression: it should not be much difficult as XMLForms uses
JXPath to retrieve values and it's quite easy to add extension functions to
it.

Konstantin

<snip/>

>
> Regards,
>   Konstantin
>
> >
> > thanks in advance
> >
> > -- Jakob
> >


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to