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

	$Author: richard $

	$Revision: 1.10 $

	$Log: 1,v $
	Revision 1.10  2002/06/18 10:59:51  richard
	extra i in a WML:DO element ,not well-formed xml
	
	Revision 1.9  2002/06/14 15:25:46  richard
	add titles to the buttons

	Revision 1.8  2002/04/26 08:11:09  richard
	missing the # character

	Revision 1.7  2002/04/20 08:07:24  richard
	yesno

	Revision 1.6  2002/03/15 15:37:28  richard
	spelling

	Revision 1.5  2002/03/15 15:35:47  richard
	rewrite test, add the deck as internal cards

	Revision 1.4  2002/01/29 12:12:29  gb
	Modified loads of tests to fix mostly syntatic errors, including non quoting of attribute values and the incorrect use of macros, usually [[autofailed]].
	Modified Files:
		wml2/markup/contextandnav/wmlanchorelement/3
		wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/1
		wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/2
		wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/3
		wml2/markup/formsmodule/inputelementformat/wmlemptyokattribute/4
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/1
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/11
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/12
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/2
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/3
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/4
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/5
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/6
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/7
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/8
		wml2/markup/formsmodule/inputelementformat/wmlformatattribute/9
		wml2/markup/formsmodule/wmlonpickattribute/1
		wml2/markup/formsmodule/wmlonpickattribute/2
		wml2/markup/formsmodule/wmlonpickattribute/3
		wml2/markup/structuremodule/bodyelement/1
		wml2/markup/structuremodule/wmlcardelement/1
		wml2/markup/structuremodule/wmlcardelement/2
		wml2/markup/structuremodule/wmlcardelement/3
		wml2/uabehaviour/attribexplang/1
		wml2/uabehaviour/attribexplang/wmlvariable/regendocument/1
		wml2/uabehaviour/attribexplang/wmlvariable/regendocument/2
		wml2/uabehaviour/attribexplang/wmlvariable/validation/2
		wml2/uabehaviour/attribexplang/wmlvariable/variableref/1
		wml2/uabehaviour/attribexplang/wmlvariable/variableref/2
		wml2/uabehaviour/attribexplang/wmlvariable/variableref/5
		wml2/uabehaviour/attribexplang/wmlvariable/variableref/6
		wml2/uabehaviour/attribexplang/wmlvariable/variablescoping/declarations/2
		wml2/uabehaviour/backkey/2
		wml2/uabehaviour/eventmodel/eventbindings/typedevents/1
		wml2/uabehaviour/eventmodel/eventbindings/typedevents/2
		wml2/uabehaviour/eventmodel/eventbindings/typedevents/3
		wml2/uabehaviour/eventmodel/eventbindings/typedevents/4
		wml2/uabehaviour/eventmodel/eventbindings/typedevents/5

	Revision 1.3  2001/10/30 16:22:24  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:12  gb
	Added the standard header of Author, Revision and Log at the top of each template file.


-->
<test id="wml2/uabehaviour/attribexplang/wmlvariable/variableref/1" 
	class="A" scope="wml2" testtype="application" type="manual" 
	source="wml2#5.5.1.1" device="both">
	<assertion>When using the WML variable attribute expression language, the 
	variable names must consist of a US-ASCII letter or underscore, followed 
	by zero or more letters, digits or underscores.
	</assertion>
	<specnote>Create several documents that set a variable using the WML:SETVAR 
	element. These variable names should be a combination of legal and illegal 
	characters to test conformance to the spec.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card id="main" title="main" newcontext="true">
				<p>
					Go on all the cards and then return to this card.<br />
					When all links have been clicked, answer the question below.
				</p>
				<p>test var 123 : The test should fail
					<wml:do type="accept" title="card1" label="card1">
						<wml:go href="#card1">
							<wml:setvar name="123" value="error" />
						</wml:go>
					</wml:do>
				</p>
				<p>test var ?~# : The test should fail
					<wml:do type="accept" title="card2" label="card2">
						<wml:go href="#card2">
							<wml:setvar name="?~#" value="error" />
						</wml:go>
					</wml:do>
				</p>
				<p>test var _12 : The test should pass
					<wml:do type="accept" title="card3" label="card3">
						<wml:go href="#card3">
							<wml:setvar name="_12" value="error" />
						</wml:go>
					</wml:do>
				</p>
				<p>test var abc : The test should pass
					<wml:do type="accept" title="card4" label="card4">
						<wml:go href="#card4">
							<wml:setvar name="abc" value="error" />
						</wml:go>
					</wml:do>
				</p>
				<p>test var ABC : The test should pass
					<wml:do type="accept" title="card5" label="card5">
						<wml:go href="#card5">
							<wml:setvar name="ABC" value="error" />
						</wml:go>
					</wml:do>
				</p>
				<p>Did only the first 2 links cause errors?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card1" title="card1">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>The variable $$123 = $123<br />
					The variable should not be shown<br />
					Now go back.
				</p>
			</wml:card>
			<wml:card id="card2" title="card2">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>The variable $$?~# = $?~#<br />
					The variable should not be shown<br />
					Now go back.
				</p>
			</wml:card>
			<wml:card id="card3" title="card3">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>The variable $$_12 = $_12<br />
					The variable should be shown<br />
					Now go back.
				</p>
			</wml:card>
			<wml:card id="card4" title="card4">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>The variable $$abc = $abc<br />
					The variable should be shown<br />
					Now go back.
				</p>
			</wml:card>
			<wml:card id="card5" title="card5">
				<wml:do type="prev">
					<wml:prev />
				</wml:do>
				<p>The variable $$ABC = $ABC<br />
					The variable should be shown<br />
					Now go back.
				</p>
			</wml:card>
		]]>
	</method>
</test>
