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

	$Author: richard $

	$Revision: 1.9 $

	$Log: 3,v $
	Revision 1.9  2002/06/19 10:49:47  richard
	remove the doubvious command
	
	Revision 1.8  2002/06/18 13:04:45  richard
	the scope of the control variable was local and not global
	
	Revision 1.7  2002/06/18 13:00:48  richard
	autofailed misssing
	
	Revision 1.6  2002/04/23 10:47:06  richard
	/ of the input element missing

	Revision 1.5  2002/04/19 14:47:02  richard
	utofailed

	Revision 1.4  2002/03/16 10:59:34  richard
	rewrite test

	Revision 1.3  2001/10/30 16:22:27  gb
	Modified all the test files in the wml2 directory such that it puts the <?xml?> declaration back at the top of the file, before the comment.

	Revision 1.2  2001/10/08 21:56:13  gb
	Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/attribexplang/wmlvariable/variablescoping/declarations/3" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.5.1.4.1" device="both">
	<assertion>When a variable is declared with the WML:SETVAR element, the 
	variable must be globally scoped, regardless of the positioning of the 
	WML:SETVAR element relative to a FORM element.
	</assertion>
	<specnote>Create a card that sets a variable(use a WML:SETVAR element, 
	within a WML:GO element, within a WML:ANCHOR element), within a FORM 
	element. Display the card, click the link, and make sure you are taken to 
	a second card that will display the variables value.
	</specnote>
	<results>
		<result>
			<name>test</name>
			<value>pass</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<form action="#card2">
					<fieldset>
						Please click this
						<wml:anchor>
							link
							<wml:go href="#card2">
								<wml:setvar name="test" value="pass" />
							</wml:go>
						</wml:anchor>
					</fieldset>
					<fieldset>
						<input name="test" value="fail" />
					</fieldset>
					<fieldset>
						<input type="submit" value="submit" />
					</fieldset>
				</form>
				[[auto_failed]]
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:onevent type="enterforward">
					<wml:go href="[[responseurl]]">
						<wml:postfield name="test" value="$test" />
						[[sessionvars]]
					</wml:go>
				</wml:onevent>
				[[auto_failed]]
			</wml:card>
		]]>
	</method>
</test>
