Ah, it so obvious once you know the answer ;-) Thanks for that Matt and Alex.

Dave.

Alessandro Vernet wrote:

Matt Allen wrote:

Give this a spin.
<xforms:bind nodeset="/form/doc/people/person/job"
readonly="not(../name/text() = '')"/>


That's correct. Or just readonly="../name != ''" should do it as well.

Dave, you can think of each <bind> expression as doing this: evaluate the XPath expression in the "nodeset" attribute; for each node returned "apply the rules" defined in the other attributes with the XPath expressions evaluated in the context of the current node.

Alex


------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user



------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ orbeon-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/orbeon-user

Reply via email to