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

<test id="wae2/media/markup/rules/4" class="A" scope="wae2" 
	testtype="application" type="manual" source="wae2#6.2.4" device="both">
	<assertion>When navigating between XHTML Mobile Profile and WML1 or 
	WML2, all variables, part of the WML context, must be maintained across 
	languages, as if a single user agent was supported.
	</assertion>
	<specnote>Get the user to access a deck that contains WML2 content; this
	deck will be linked to a WMl1 deck, linked to a WML2 deck. Each deck will 
	set up a variable and display the previous variables already set. Make 
	sure that the last WML2 deck displays all the variables previously set. 
	</specnote>
	<results>
		<result>
			<name>submit</name>
			<value>yes</value>
		</result>
	</results>
	<method>
		<![CDATA[
			<wml:card newcontext="true" id="main" title="main">
				<wml:onevent type="enterforward">
					<wml:go href="[[page1]]">
						<setvar name="wml2" value="1"/>
					</wml:go>
				</wml:onevent>
				<p>Are the variables all set?
					<br />
					[[yesno]]
				</p>
			</wml:card>
		]]>
	</method>
	<pages>
		<page id="1">
			<![CDATA[
				<?xml version="1.0"?>
				<!DOCTYPE wml PUBLIC "-//W3C//DTD WML 1.3//EN" "http://www.w3.org/TR/wml13.dtd">
				<wml>	
					<card id="card2">
						<p>This a WML1 card<br/>
							Please go to card3 first
							<br/>
							Go back to the previous card using the BACK Key
						</p>
						<do type="accept" label="card3">
							<go href="[[page2]]">
								<setvar name="wml1" value="1"/>
							</go>
						</do>
					</card>
				</wml>
			]]>
		</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>Page2</title>
					</head>
						<wml:card id="card3" title="page3">
							<p>You should reach this card successfully<br />
								The variable are : <br/>
								$$wml1 : $wml1 <br/>
								$$wml2 : $wml2 
								<br/>
								Now go back using the BACK Key 
							</p>
						</wml:card>
				</html>
			]]>
		</page>
	</pages>
</test>
