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

RE: XForms WD 20011207 - Query consistency

From: Dan Dennedy <DDennedy@digitalbang.com>
Date: Wed, 12 Dec 2001 09:19:58 -0500
Message-ID: <C96072E096CC0D4EA606C1119F51858A01DB45@intrabang01.digitalbang.com>
To: "JOHANSSON, Justin" <Justin.JOHANSSON@baesystems.com>, <www-forms@w3.org>, <xforms@yahoogroups.com>
From: JOHANSSON, Justin [mailto:Justin.JOHANSSON@baesystems.com]
> 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.

I like inconsistency in examples because it demonstrates flexibility of
approach forcing the reader to better understand what is really going
on. In this example, the difference forces the reader to better
understand the context of the ref attribute's XPath. (Sometimes I see
XML newbies starting most XPath expressions with // because they do not
understand context!)
Received on Wednesday, 12 December 2001 09:19:58 UTC

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