<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Scope Example</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
</head>
<body>
<h1 align="center">Scope Example</h1>
<p>
  This is an example using the scope tag and the import tag to illustrate
    how variable scoping works inside of a template file.</p>
<TABLE border="1">
  <TR>
    <TD><wact:literal>{$Animal}</wact:literal> = {$Animal}</TD>
    <TD><wact:literal>{$^Animal}</wact:literal> = {$^Animal}</TD>
    <TD><wact:literal>{$#Animal}</wact:literal> = {$#Animal}</TD>
  </TR>
  <TR>
    <TD><wact:literal>{$Food}</wact:literal> = {$Food}</TD>
    <TD><wact:literal>{$^Food}</wact:literal> = {$^Food}</TD>
    <TD><wact:literal>{$#Food}</wact:literal> = {$#Food}</TD>
  </TR>
</TABLE>
<blockquote> This is inside a Data Space tag
  <wact:scope wact:id="middle">
    <TABLE border="1">
      <TR>
        <TD><wact:literal>{$Animal}</wact:literal> = {$Animal}</TD>
        <TD><wact:literal>{$^Animal}</wact:literal> = {$^Animal}</TD>
        <TD><wact:literal>{$#Animal}</wact:literal> = {$#Animal}</TD>
      </TR>
      <TR>
        <TD><wact:literal>{$Food}</wact:literal> = {$Food}</TD>
        <TD><wact:literal>{$^Food}</wact:literal> = {$^Food}</TD>
        <TD><wact:literal>{$#Food}</wact:literal> = {$#Food}</TD>
      </TR>
    </TABLE>
    <blockquote> This is inside a Nested Data Space tag
      <wact:scope wact:id="inner">
        <TABLE border="1">
          <TR>
            <TD><wact:literal>{$Animal}</wact:literal> = {$Animal}</TD>
            <TD><wact:literal>{$^Animal}</wact:literal> = {$^Animal}</TD>
            <TD><wact:literal>{$#Animal}</wact:literal> = {$#Animal}</TD>
          </TR>
          <TR>
            <TD><wact:literal>{$Food}</wact:literal> = {$Food}</TD>
            <TD><wact:literal>{$^Food}</wact:literal> = {$^Food}</TD>
            <TD><wact:literal>{$#Food}</wact:literal> = {$#Food}</TD>
          </TR>
        </TABLE>
      </wact:scope>
    </blockquote>
  </wact:scope>
</blockquote>
</body>
</html>
