RE: Comments on XForms working draft from 2001-02-16

I'd say that at least the "canonical" XPath / XSLT syntax should be used (by
declaring the prefix in the XML document, and using that prefix in the
binding expression). So the example below would become:

<xform:textbox xmlns:foo="uri-A" xform="b"
ref="/foo:orderForm/foo:shipTo/foo:firstName">


> -----Original Message-----
> From: Josef Dietl [mailto:josef@mozquito.com]
> Sent: Friday, June 08, 2001 2:05 PM
> To: Julian Reschke; www-forms@w3.org
> Subject: RE: Comments on XForms working draft from 2001-02-16
>
>
> This is relatively simple by exploiting the full power of XPath. See
> http://www.w3.org/TR/xpath for more details. Without having it verified,
> the following should work:
>
> 	orderForm[namespace::uri-b]/shipTo/firstName
>
> to select the firstName descendant of the second orderForm element in
> your example.
>
> However, this is still work in progress, and a popular option is to use
> only a subset of XPath. If you have real-world scenarios depending on
> certain XPath features, explaining them here would certainly be useful.
> (Though we can't make any promises.)
>
> Josef
> --
> Reforming the Web: www.mozquito.com
>
> > -----Original Message-----
> > From: Julian Reschke [mailto:julian.reschke@gmx.de]
> > Sent: Friday, June 08, 2001 1:39 PM
> > To: www-forms@w3.org
> > Subject: Comments on XForms working draft from 2001-02-16
> >
> >
> > 8.5.: Multiple Forms per Page
> >
> > The example binds to an "orderform" element, which is in a namespace.
> > However, the binding syntax doesn't seem to provide a way to
> > specify this.
> >
> > For instance, if the instance data would be
> >
> > <xform:xform id="b">
> >   <xform:model>
> >     ...
> >   </xform:model>
> >   <xform:instance>
> >     <orderForm xmlns="uri-a">
> >       <shipTo>
> >         <firstName>value</firstName>
> >       </shipTo>
> >     </orderForm>
> >     <orderForm xmlns="uri-b">
> >       <shipTo>
> >         <firstName>value</firstName>
> >       </shipTo>
> >     </orderForm>  </xform:instance>
> > </xform:xform>
> >
> > How would I distinguish between the two different orderForm elements?
> >
> >
> >
>

Received on Friday, 8 June 2001 08:18:29 UTC