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 09:02:32 +0200
Message-ID: <3DA13188.4040601@e-xmlmedia.fr>
To: "Subramanian Peruvemba (PV)" <subramanian.peruvemba@oracle.com>
CC: "'Micah Dubinko'" <MDubinko@cardiff.com>, www-forms@w3.org

Hi,

> I am not sure if I follow you here.
> My question was how does "bind" work when UI controls are within the
> context of a group/repeat. Let me try with another example.
> 
>     <instance>
>         <a>        -----------------[Node-1]
>            <b>     -----------------[Node-2]
>               <a/> -----------------[Node-3]
>            </b>
>         </a>
>     </instance>
> 
>     <bind id="b1" nodeset="/a/b">
>     <bind id="b2" nodeset="a" relevant="false">

This last nodeset binds to node /*/a, that is to say none in your instance.

>     
>     <repeat ref="/a/b" >
>        <input id="i1" bind="b2">
>           ...
>        </input>
>     </repeat>
> 
> Question: 
>  1. Does the "input" bind to "Node-1" OR "Node-3"
>  2. The "readonly" applies to "Node-1" OR "Node-3"

They are bound to another node, /*/a.

However, if you instance was like this:
<myroot>
	<a> (node 1)
		<b> (node 2)
			<a/> (node 3)
		</b>
	</a>
</myroot>
The input would be bound to node 1, and the relevant would apply to node 
1 also.

Regards,
Jérôme
Received on Monday, 7 October 2002 03:04:04 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 10 March 2012 06:21:53 GMT