<?xml version="1.0" encoding="ISO-8859-1"?>
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:xf="http://www.w3.org/2002/xforms"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:ev="http://www.w3.org/2001/xml-events">
    <head>
        <title>Test</title>
		<style type="text/css">
			.select1 .selector-item { display:block; }
			.select1 label { float: none; width: 100%; }
		</style>
		
        <xf:model>
			<xf:instance id="default" xmlns="">
				<data>
					<a>1</a>
				</data>
			</xf:instance>
			
			           
           <!--SUBMISSION-->
            <xf:submission id="debug" action="../resources/jsp/debug-instance.jsp" method="post" replace="all"/>
        </xf:model>
    </head>

    <body>
    	<xf:group>
	        <xf:input ref="a">
	        	<xf:label>a</xf:label>
	        </xf:input>
	        <xf:trigger>
	        	<xf:label>a</xf:label>
	        	<xf:toggle case="a"/>
	        </xf:trigger>
	        <xf:trigger>
	        	<xf:label>b</xf:label>
	        	<xf:toggle case="b"/>
	        </xf:trigger>
	        <xf:switch>
            	<xf:case id="a" selected="true">
			        <xf:trigger ref="a[text()='1']">
			        	<xf:label>Optional trigger</xf:label>
			        </xf:trigger>
			    </xf:case>
			    <xf:case id="b">
			    	<div>case b</div>
			    </xf:case>
			</xf:switch>      
	    </xf:group>
    </body>
</html>
