Isn't this a case of http://www.w3.org/TR/xforms/slice7.html#expr-dynamic-dependency ?

Leigh Klotz wrote:
<xf:group ref=".[/your/condition/here]">...</xf:group>