Re: repeats

Erik Bruchez wrote:
> 
> Jason wrote:
>  >
>  >> You don't need any binds at all on the template. You just use it as a
>  >> data template.
>  >
>  > But I think binds SHOULD be used. binds prevent the mess of xpath
>  > littering the view, and I think its just good practice to use them.
> 
> You can use binds at your leisure, there are just no binds that need
> to target anything in the template, and no duplication of binds. Your
> initial point was that there would be a mess, a duplication of
> binds. I say no, I don't see why that would be. Your binds, if you
> want any, are still against your main instance, like in your XForms
> 1.0 first edition scenario.

No there is no duplication of binds, just an extra set. I am assuming 
that as a good xforms practitioner you would want to bind all the nodes 
that are to be source nodes AND all the nodes that are to be target 
nodes for the insert to work - which could potentially be all the nodes 
in your instance and your prototype instance, where previously (1.0) the 
prototype instance nodes would of course not be required.

Received on Thursday, 9 November 2006 23:48:10 UTC