<?xml version="1.0" encoding="UTF-8"?>
<test id="wml/struct/template/2" class="A" scope="wml" testtype="application" type="manual" source="wml13#11.4" device="both">
  <assertion>When a DO element is specified within a TEMPLATE element, and a
DO element with the same NAME attribute value is specified within a CARD
element, the DO element within the CARD element takes precedence.
</assertion>
  <results>
    <result>
      <name>var</name>
      <value>pass</value>
    </result>
  </results>
  <method>
    <![CDATA[<template>
<do type="accept" name="do" label="accept OK">
<go href="#card1">
<setvar name="var" value="fail"/>
</go>
</do>
</template>
<card id="main" newcontext="true">
<p>Select the accept OK option to continue.
<do type="accept" name="do" label="accept OK">
<go href="#card1">
<setvar name="var" value="pass"/>
</go>
</do></p>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<responseurl>">
<postfield name="var" value="$var"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
</test>

