<?xml version="1.0" encoding="UTF-8"?>
<test id="wml/state/variables/substitution/6" class="A" scope="wml" testtype="application" type="manual" source="wml13#10.3.1" device="both">
  <assertion>When variables are placed in the text(#PCDATA)of a card or into %vdata
and %HREF attributes in WML elements they are replaced with the variables
value.
</assertion>
  <specnote>Added with wml version 1.3.</specnote>
  <results>
    <result>
      <name>submit</name>
      <value>yes</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<p>Select this&nbsp;<anchor>
<go href="#card1">
	<setvar name="text" value="This is some text."/>
	<setvar name="backlabel" value="Back"/>
	<setvar name="maincard" value="#main"/>
</go>link</anchor>&nbsp;and then come back to
this screen.</p>
<p mode="wrap">Did you see a screen saying 'This is some text'? 
<br />
<yesno>
</p>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
	<do type="prev" label="$backlabel">
		<go href="$(maincard:unesc)"/>
	</do>
<p>$text<br/><br/>
Click 'back'
</p>
</card>


]]>
    </card>
  </cards>
</test>

