<?xml version="1.0" encoding="UTF-8"?>

<test id="wml2/markup/formsmodule/activationeventhandler/wmlonpickattribute/1" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#6.5.4.2" device="both">
	<assertion>When a multiple-selection list generates a pick event, 
	due to the user selecting an option, user must be taken to the card 
	specified by the URI, when the option is selected.
	</assertion>
	<specnote>Create a card that holds three OPTION elements,
	have the multiple attribute set to 'multiple', and contain
	a WML:ONPICK attribute set to navigate to a card when it is chosen. 
	Display the card, choose the associated option, and make sure that 
	the user agent navigates to the chosen card.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>Please Select the Railway option</p>
				<p>
					<form action="#card2">
						<fieldset>
							<p>Choice</p>
								<select wml:name="choice" wml:iname="ichoice" multiple="multiple">
									<option wml:onpick="#card1" value="plane">Airplane</option>
									<option wml:onpick="#card2" value="train">Railway</option>
									<option wml:onpick="#card3" value="car">Automobile</option>
								</select>
						</fieldset>
						<fieldset>
							<input type="submit" value="submit" />
							<input type="reset" value="reset" />
					</fieldset>
					</form>
				</p>
				<p>Were you taken to card2 when you chose the Railway option?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card1" title="card1">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 1<br />
					Now go back and answer the question.
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 2<br />
					Now go back and answer the question.
				</p>
			</wml:card>
			<wml:card id="card3" title="card3">
				<wml:do type="accept">
					<wml:prev />
				</wml:do>
				<p>This is card 3<br />
					Now go back and answer the question.
				</p>
			</wml:card>
		]]>
	</method>
</test>
