<xhtml:htmlxmlns:xforms="http://www.w3.org/2002/xforms"xmlns:xhtml="http://www.w3.org/1999/xhtml"xmlns:ev="http://www.w3.org/2001/xml-events"><xhtml:head><xhtml:title>Single toggling with a select1</xhtml:title><xforms:model><xforms:instanceid="selection"><selection>1</selection></xforms:instance></xforms:model></xhtml:head><xhtml:body><xforms:select1ref="instance('selection')"appearance="minimal"><xforms:label>Select: </xforms:label><xforms:item><xforms:label>First</xforms:label><xforms:value>1</xforms:value></xforms:item><xforms:item><xforms:label>Second</xforms:label><xforms:value>2</xforms:value></xforms:item><!-- Solution with AVT --><!--<xforms:toggle ev:event="xforms-value-changed" case="case{.}"/>--><!-- Solution with nested case element--><xforms:toggleev:event="xforms-value-changed"><xforms:casevalue="concat('case', .)"/></xforms:toggle></xforms:select1><xforms:switch><xforms:caseid="case1">
Case 1
</xforms:case><xforms:caseid="case2">
Case 2
</xforms:case></xforms:switch></xhtml:body></xhtml:html>