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

	$Author: richard $

	$Revision: 1.9 $

	$Log: 7,v $
	Revision 1.9  2002/06/18 10:50:57  richard
	change the static domain and path into variables
	
	Revision 1.8  2002/06/16 10:53:40  richard
	remove the body element

	Revision 1.7  2002/04/19 09:48:50  richard
	yesno not included in a p element

	Revision 1.6  2002/03/21 11:28:42  richard
	includes the external deck in the test

	Revision 1.5  2002/02/22 10:38:22  richard
	upate tests

	Revision 1.4  2002/02/04 16:20:30  gb
	Added the test source and results into the following test files:

	Modified Files:
		wml2/markup/contextandnav/wmlaccesselement/3
		wml2/markup/contextandnav/wmlaccesselement/4
		wml2/markup/contextandnav/wmlaccesselement/5
		wml2/markup/contextandnav/wmlaccesselement/6
		wml2/markup/contextandnav/wmlaccesselement/7
		wml2/markup/contextandnav/wmlaccesselement/8
		wml2/markup/contextandnav/wmlgetvarelement/1
		wml2/markup/contextandnav/wmlgetvarelement/10
		wml2/markup/contextandnav/wmlgetvarelement/11
		wml2/markup/contextandnav/wmlgetvarelement/2
		wml2/markup/contextandnav/wmlgetvarelement/3
		wml2/markup/contextandnav/wmlgetvarelement/4
		wml2/markup/contextandnav/wmlgetvarelement/5
		wml2/markup/contextandnav/wmlgetvarelement/6
		wml2/markup/contextandnav/wmlgetvarelement/7
		wml2/markup/contextandnav/wmlgetvarelement/8
		wml2/markup/contextandnav/wmlgetvarelement/9
		wml2/markup/contextandnav/wmlgoelement/6
		wml2/markup/contextandnav/wmlgoelement/7
		wml2/markup/contextandnav/wmlnoopelement/1
		wml2/markup/contextandnav/wmlsetvarelement/1
		wml2/markup/contextandnav/wmlsetvarelement/2
		wml2/markup/contextandnav/wmlsetvarelement/3
		wml2/markup/contextandnav/wmlsetvarelement/4
		wml2/markup/contextandnav/wmlsetvarelement/5
		wml2/markup/contextandnav/wmlsetvarelement/6
		wml2/markup/contextandnav/wmltimerelement/1
		wml2/markup/contextandnav/wmltimerelement/2
		wml2/markup/contextandnav/wmltimerelement/3
		wml2/markup/contextandnav/wmltimerelement/4
		wml2/markup/contextandnav/wmltimerelement/5
		wml2/markup/contextandnav/wmltimerelement/6
		wml2/markup/contextandnav/wmltimerelement/7
		wml2/markup/contextandnav/wmltimerelement/8
	Added Files:
		wml2/markup/contextandnav/wmlaccesselement/access3_1_ext.html
		wml2/markup/contextandnav/wmlaccesselement/access3_2_ext.html
		wml2/markup/contextandnav/wmlaccesselement/access4_1_ext.html
		wml2/markup/contextandnav/wmlaccesselement/access4_2_ext.html
		wml2/markup/contextandnav/wmlaccesselement/access5_ext.html
		wml2/markup/contextandnav/wmlaccesselement/access6_ext.html
		wml2/markup/contextandnav/wmlaccesselement/access7_2_ext.html
		wml2/markup/contextandnav/wmlaccesselement/access8_1_ext.html
		wml2/markup/contextandnav/wmlaccesselement/access8_2_ext.html

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


-->
<test id="wml2/markup/contextandnav/wmlaccesselement/7" class="A" 
	scope="wml2" testtype="application" type="manual" 
	source="wml2#6.16.2" device="both">
	<assertion>When the WML:ACCESS element is used, and the PATH attribute 
	is set to a relative URI, and the URI matches the path to be accessed
	(once the user agent has converted the relative URI into an absolute path), 
	the user agent must allow access to the destination requested.
	</assertion>
	<specnote>Create a card containing a WML:ACCESS element and set the PATH 
	attribute to a relative URI that does not exist. Display the card and make 
	sure access is denied. Repeat the test with a relative URI that is within 
	the same root directory as the card to be accessed. Make sure that access 
	is achieved.
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main" title="main">
				<p>
					Click each link in turn then return to this card.<br />
					When all links have been clicked, answer the question below.
				</p>
				<p>
					<a href="[[page1]]">Link1</a>&nbsp; should pass<br />
					<a href="[[page2]]">Link2</a>&nbsp; should fail<br />
				</p>
				<p>Was only Link1 successful?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
	<pages>
		<page id="1">
			<![CDATA[
				<?xml version="1.0" encoding="UTF-8"?>
				<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/wml20.dtd">
				<html xmlns="http://www.w3.org/1999/xhtml"
					xmlns:wml="http://www.wapforum.org/2001/wml">
					<head>
						<title>Access 7</title>
						<wml:access path="/wmlaccesselement" />
					</head>
						<wml:card id="card1" title="card1-doc2">
							<wml:do type="prev">
								<wml:prev />
							</wml:do>
							<p>You should reach this card successfully<br />
								Now go back. 
							</p>
						</wml:card>
				</html>
			]]>
		</page>
		<page id="2">
			<![CDATA[
				<?xml version="1.0" encoding="UTF-8"?>
				<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD WML 2.0//EN" "http://www.wapforum.org/wml20.dtd">
				<html xmlns="http://www.w3.org/1999/xhtml"
					xmlns:wml="http://www.wapforum.org/2001/wml">
					<head>
						<title>Access 7</title>
						<wml:access path="/error path" />
					</head>
						<wml:card id="card1" title="card1-doc3">
							<wml:do type="prev">
								<wml:prev />
							</wml:do>
							<p>You should not reach this card. If you do the test has failed.<br />
								Now go back. 
							</p>
						</wml:card>
				</html>
			]]>
		</page>
	</pages>
</test>
