W3C home > Mailing lists > Public > www-forms@w3.org > October 2002

Re: Bookmark Example in XForms Spec

From: Jérôme Nègre <jerome.negre@e-xmlmedia.fr>
Date: Mon, 07 Oct 2002 16:28:03 +0200
Message-ID: <3DA199F3.20507@e-xmlmedia.fr>
To: "Subramanian Peruvemba (PV)" <subramanian.peruvemba@oracle.com>
CC: "'Micah Dubinko'" <MDubinko@cardiff.com>, www-forms@w3.org

> OK. I see I made mistakes in wring my original examples. Hopefully I
> have corrected the mistakes here (and this is not a nested bind)
>     <bind id="b1" nodeset="/myroot/a/b"/>
>     <bind id="b2" nodeset="a" relevant="false"/>

b2 is bound to /*/a, not to (context node)/a. So all controls using 
bind="b2" will be bound to node 1. And relevant also applies to node 1.

>      <repeat ref="/myroot/a/b" >
>         <input id="i1" bind="b2">
>            ...
>         </input>
>      </repeat>
> In the above example my input control is in the context of repeat

The context does NOT matter, since you're using a bind="...". In fact, 
using a control with a bind inside a repeat is pretty useless in most cases.

> This is what I think
>   1. Input node binds to /myroot/a/b/a

No !
The nodeset specified inside the <bind> is not a shortcut for an XPath 
expression, it is a shortcut for a nodeset -> the xpath context doesn't 

>   2. "relevance" property is attached to /myroot/a

That's correct.

Received on Monday, 7 October 2002 10:29:37 UTC

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