Hi,
Assuming you name the control with the checkboxes "choices", and the first input "input1", then the visibility rule for the:
- 1st input should be: xxf:split($choices) = ('one', 'two')
- 2nd input should be: xxf:split($choices) = 'two' or (xxf:split($choices) = 'one' and $input1 != '')
This is similar to what you're doing in your code, and the discrepancy between the above expression and what you have might come from me misunderstanding your description or it not being inline with what you want. (In particular, the behavior you describe for "If selected all..." looks the one you have for "if selected first and second choice...".)
But beyond the details, I hope you get the idea, and can adapt this to what you need precisely.
Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet