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

  $Author: richard $

  $Revision: 1.8 $

  $Log: 5,v $
  Revision 1.8  2002/06/16 10:06:52  richard
  remove the body element

  Revision 1.7  2002/04/23 08:12:39  richard
  missing the end /

  Revision 1.6  2002/04/20 08:54:02  richard
  yesno

  Revision 1.5  2002/03/26 09:12:18  richard
  start wml:card extra /
  includes external decks

  Revision 1.4  2002/02/26 13:55:32  richard
  rewrite the tests

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


-->
<test id="wml2/uabehaviour/navigationreference/gotask/5" class="A" scope="wml2" 
	testtype="application" type="manual" source="wml2#5.3.1" device="both">
  <assertion>When the WML:GO task is executed, and the WML:USE-XML-FRAGMENTS 
  attribute is 'true', and the document contains a matching element ID attribute, 
  the fragment identifier of the target URI must be the card that holds that element 
  with the matching ID.
  </assertion>
  <specnote>Create a document with a link to another card in the current document. 
  The link 'id' must match that of an element 'id' in the card you wish to display. 
  Click the anchor an make sure you are taken to the new card.
  </specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
<![CDATA[
	<html xmlns="http://www.w3.org/1999/xhtml" 
          xmlns:wml="http://www.wapforum.org/2001/wml" 
          wml:use-xml-fragments="true">
		<head>
			<title>go task 5</title>
		</head>
			<wml:card id="main" newcontext="true">
				<p>Click this &nbsp;
					<wml:anchor>
						Link&nbsp;
						<wml:go href="#pass" />
					</wml:anchor>
					to go to second card.<br />
				</p>
				<p>Was PASSED displayed when the link was pressed?
					<br/>
					[[yesno]]
				</p>
			</wml:card>
			<wml:card id="card2" title="second">
				<wml:do type="prev">
        	<wml:prev />
        </wml:do>
        	<p id="pass">PASSED</p>
          <p>Now go back<br/><br/></p>
          <p id="fail">FAIL</p>
       </wml:card>
	</html>
]]>
  </method>
</test>
