<?xml version="1.0" encoding="UTF-8"?>
<test id="wmlscript/core/pragmas/access/6" class="A" scope="wmlscript" testtype="application" type="auto" source="wmls11#6.7.2" device="both">
  <assertion>When the 'path' attribute of the 'access' pragma of a destination compilation unit is specified as a relative path, it is converted to an absolute path by the user agent. It then defines the path prefix that is permitted access to the compilation unit - where each element of the prefix must match that of the current compilation unit exactly for access to be granted.
</assertion>
  <results>
    <result>
      <name>test</name>
      <value>pass</value>
    </result>
  </results>
  <method>
    <![CDATA[<card newcontext="true" id="main">
<onevent type="onenterforward">
<go href="<script1>#main('card1')"/>
</onevent>
<auto_failed>
</card>]]>
  </method>
  <cards>
    <card id="1">
      <![CDATA[<card id="card1">
<onevent type="onenterforward">
<go href="<responseurl>">
<postfield name="test" value="$test"/>
<sessionvars>
</go>
</onevent>
<auto_failed>
</card>
]]>
    </card>
  </cards>
  <scripts>
    <script id="1">
      <![CDATA[use access path "../..";

extern function main(next) {
	WMLBrowser.setVar('test', 'pass');
	WMLBrowser.go('#' + next);
	return 1;
}
]]>
    </script>
  </scripts>
</test>

