Binding : Do I need a nodeset?

Dear All,

I have a couple of groups one for editing (i.e. uses input fields) & one
for readonly (ie only uses output fields).

Which to show is determined by binding to a bind which has a "relevant"
attrib set e.g.

       <xforms:bind id="OID_EDIT"
relevant="instance('OIDVals')//oids[1]/@active = 0 and
instance('systemInformation')//@nodeEditable[1] = 1"
nodeset="instance('systemInformation')//@localEdit[1]"/>
        <xforms:bind id="OID_NO_EDIT"
relevant="instance('OIDVals')//oids[1]/@active = 1 and
instance('systemInformation')//@nodeEditable[1] = 1"
nodeset="instance('systemInformation')//@localNoEdit[1]"/>

& then:

<xforms:group appearance="minimal" bind="OID_EDIT" id="OID_Group_Editable">

etc.

I can only seem to get it to work (in Chiba) is via having a nodeset
which is just there to bind to. I.e. I create 2 dummy/empty attributes
within an instance & use them as the nodeset reference.

Do I need a nodeset ?

e.g. should

     <xforms:bind id="OID_EDIT"
relevant="instance('OIDVals')//oids[1]/@active = 0 and
instance('systemInformation')//@nodeEditable[1] = 1" />
     <xforms:bind id="OID_NO_EDIT"
relevant="instance('OIDVals')//oids[1]/@active = 1 and
instance('systemInformation')//@nodeEditable[1] = 1" />

Work in the same way?

It appears to work for calculated values e.g.

<xforms:bind id="CountOv" calculate="count(instance('OIDVals')//ov)"/>

So are there any rules wrt binding & when you need a nodeset & when you
don't?

TIA

Adam

********************************************************************************************************************

This message may contain confidential information. If you are not the intended recipient please inform the
sender that you have received the message in error before deleting it.
Please do not disclose, copy or distribute information in this e-mail or take any action in reliance on its contents:
to do so is strictly prohibited and may be unlawful.

Thank you for your co-operation.

NHSmail is the secure email and directory service available for all NHS staff in England and Scotland
NHSmail is approved for exchanging patient data and other sensitive information with NHSmail and GSI recipients
NHSmail provides an email address for your career in the NHS and can be accessed anywhere
For more information and to find out how you can switch, visit www.connectingforhealth.nhs.uk/nhsmail

********************************************************************************************************************

Received on Thursday, 6 August 2009 11:59:20 UTC