<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">
<xsl:template match="/">
<html>
<head>
<script language="JavaScript" src="/ofiles.js"></script>
<link rel="stylesheet" type="text/css" href="/map.css" />
</head>
<body bgcolor="#f7efde">
<script language="Javascript">insertTitle("XML/XSL Site Navigation Map - Version II");</script>
<p />
<div align="center">
<table cellpadding="2" border="0" width="100%">
<tr>
<td width="10%">
</td>
<td class="pagedesc" width="80%" align="left">
This site navigation page uses the same Master XML File with a different XSL file. The structure in this case is two-level, with a static list of the main sections in the left column, and two dynamic columns (center and right) displaying the sub-sections and the description of the selected section. <p/>
Note: For IE5 browser only.<p/>
</td>
<td width="10%">
</td>
</tr>
</table>
</div>
<table cellpadding="2" border="1" width="100%">
<tr>
<td class="header" width="30%" align="center" valign="top">
Main Section
</td>
<td class="header" width="30%" align="center" valign="top">
Sub Section
</td>
<td class="header" width="40%" align="center" valign="top">
Section Description
</td>
</tr>
<tr>
<td width="30%" valign="top">
<table cellpadding="2" border="0">
<xsl:for-each select="//Level1">
<tr class="level1">
<!-- <td style="color:white">.</td> -->
<td valign="top"><a href="javascript: void 0"><xsl:attribute name="onmouseover">hoverin('a<xsl:value-of select="Code"/>')</xsl:attribute><xsl:attribute name="onmouseout">hoverout('a<xsl:value-of select="Code"/>')</xsl:attribute><xsl:attribute name="onclick">reloadMap(<xsl:value-of select="Code"/>);return false</xsl:attribute><img src="/images/ballgray.gif" width="16" height="15" border="0" ><xsl:attribute name="name">a<xsl:value-of select="Code"/></xsl:attribute></img></a></td>
<td class="leftcolumn" ><a href="javascript: void 0"><xsl:attribute name="onmouseover">hoverin('a<xsl:value-of select="Code"/>')</xsl:attribute><xsl:attribute name="onmouseout">hoverout('a<xsl:value-of select="Code"/>')</xsl:attribute><xsl:attribute name="onclick">reloadMap(<xsl:value-of select="Code"/>);return false</xsl:attribute><xsl:value-of select="Title"/></a>
<br />
</td>
</tr>
</xsl:for-each>
</table>
</td>
<td width="30%" valign="top">
<table cellpadding="2" border = "0">
<xsl:for-each select="//Level2">
<!-- <xsl:for-each select="//Level2[starts-with(Code, '0')]"> -->
<!-- <xsl:variable name="here" select="."/> -->
<!-- <xsl:if test="starts-with(Code,'0')"> -->
<!-- <xsl:if test="../Code $eq$ '0'"> -->
<xsl:if test="Code[. $ge$ '0']">
<xsl:if test="Code[. $lt$ '10']">
<tr valign="top" class="level2">
<td valign="top"><xsl:if match="Level2[Url $ne$ '']"><a ><xsl:attribute name="href"><xsl:value-of select="Url"/></xsl:attribute><xsl:attribute name="onmouseover">hoverin('a<xsl:value-of select="Code"/>')</xsl:attribute><xsl:attribute name="onmouseout">hoverout('a<xsl:value-of select="Code"/>')</xsl:attribute><img src="/images/ballgray.gif" width="16" height="15" border="0" ><xsl:attribute name="name">a<xsl:value-of select="Code"/></xsl:attribute></img></a></xsl:if></td>
<td class="centercolumn" valign="top"><xsl:choose><xsl:when match="Level2[Url $ne$ '']"><a ><xsl:attribute name="href"><xsl:value-of select="Url"/></xsl:attribute><xsl:attribute name="onmouseover">hoverin('a<xsl:value-of select="Code"/>')</xsl:attribute><xsl:attribute name="onmouseout">hoverout('a<xsl:value-of select="Code"/>')</xsl:attribute><xsl:value-of select="Title"/></a></xsl:when><xsl:otherwise></xsl:otherwise></xsl:choose></td>
</tr>
</xsl:if>
</xsl:if>
</xsl:for-each>
</table>
</td>
<td width="40%" valign="top">
<xsl:for-each select="//Level1">
<xsl:if test="Code[. $eq$ '0']">
<div class="desctitle" align="center">
<xsl:value-of select="Title"/></div><p/>
<div class="descbody" align="left">
<xsl:value-of select="Description"/></div>
</xsl:if>
</xsl:for-each>
</td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>