W3C home > Mailing lists > Public > www-forms@w3.org > December 2001

RE: XForms WD 20011207 - Query consistency

From: JOHANSSON, Justin <Justin.JOHANSSON@baesystems.com>
Date: Wed, 12 Dec 2001 10:28:30 +1030
Message-ID: <807C87879475D411B1420060B057FD430302F0DD@sbntex1.baea.com.au>
To: "'www-forms@w3.org'" <www-forms@w3.org>, "'xforms@yahoogroups.com'" <xforms@yahoogroups.com>
This is the first time I've contributed to this group.  I hope 
the following is worthy of consideration.

The following two examples have been pulled from the spec.

It seems inconsistent to me that in 1. the value of the ref 
attribute of the xforms:bind element has no leading slash
(i.e. "my:payment/my:cc") whereas in 2. it does 
(i.e. "/orderForm/shipTo/firstName").  Even if there is 
argument that there is no problem and that the leading slash 
in 2. is superfluous as the XPath expression is relative 
to the xforms:instance element taken as a root anyway, then 
it is at least confusing to the reader to have the slash in 
one case and not the other.

Also the implicit association of the xforms:instance element 
with the xforms:bind element doesn't seem to be a good idea.
It forces the xforms:instance element to be in a fixed place 
and doesn't allow for the possibility of there being more than 
one instance element.  Surely the xforms:bind element should 
explicitly reference the associated xforms:instance element 
in some way.

Example 1.

    <payment as="credit" xmlns="...">
  <xforms:bind ref="my:payment/my:cc"
      relevant="my:payment/@as == 'credit'"
      required="true" type="my:cc"/>

Example 2.

<xforms:model id="orders">
  <xforms:instance xmlns="">
 <xforms:bind ref="/orderForm/shipTo/firstName"
          id="fn" type="xsd:string"


Justin Johansson
Software Engineer,
PO Box 1068
South Australia  5108
Ph:     +61 8 8480 7564
Email: justin.no-spam.johansson@baesystems.com

Remove ".no-spam" for my correct email address.
Received on Tuesday, 11 December 2001 19:00:42 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:36:05 UTC