home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:html="http://www.w3.org/TR/html4/loose.dtd"
- xmlns:xhtml="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
- exclude-result-prefixes="html xhtml"
- version="1.0">
-
- <xsl:import href="shared/Variables.xsl"/>
- <xsl:output method="xhtml" omit-xml-declaration="yes" indent="no" encoding="UTF-8"/>
-
- <xsl:param name="tocId"/>
- <xsl:param name="articleId"/>
- <xsl:param name="articleType"/>
- <xsl:param name="library"/>
- <xsl:variable name="tocExpand">Expand all</xsl:variable>
- <xsl:variable name="tocCollapse">Collapse all</xsl:variable>
-
- <xsl:variable name="headingBgColor">
- <xsl:choose>
- <xsl:when test="$library = 'EB'">#538CC5</xsl:when>
- <xsl:when test="$library = 'EBI'">#7AAA67</xsl:when>
- <xsl:when test="$library = 'EBK'">#AC81C1</xsl:when>
- <xsl:when test="$library = 'STANDARD'">#538CC5</xsl:when>
- </xsl:choose>
- </xsl:variable>
- <xsl:template match="toc">
- <SCRIPT language="JavaScript">
- var plusImage = new Image();
- plusImage.src = "img/toc_plus.gif"
-
- var minusImage = new Image();
- minusImage.src = "img/toc_minus.gif"
-
- function changeTocNode(tocId, imgId){
- var leDiv = document.getElementById(tocId);
- if (leDiv.style.display == "none") {
- leDiv.style.display = "block";
- document.getElementById(imgId).src = "img/toc_minus.gif";
- } else {
- leDiv.style.display = "none";
- document.getElementById(imgId).src = "img/toc_plus.gif";
- }
- return true;
- }
-
- function openAllTocNodes(){
- document.getElementById("expand").className="tocnone";
- document.getElementById("collapse").className="tocblock";
- var allDiv = document.getElementsByTagName("table");
- var i;
- for (i=0;i<xsl:text disable-output-escaping="yes"><</xsl:text>allDiv.length;i++) {
- var thisDiv = allDiv[i];
- if(thisDiv.id <xsl:text disable-output-escaping="yes">&&</xsl:text> thisDiv.id.indexOf('toc') != -1) {
- thisDiv.style.display = "block";
- var imgIdName = 'img' + thisDiv.id.substr(thisDiv.id.indexOf('c')+1);
- document.getElementById(imgIdName).src = "img/toc_minus.gif";
- }
- }
- return false;
- }
-
- function collapseAllTocNodes(){
- document.getElementById("collapse").className="tocnone";
- document.getElementById("expand").className="tocblock";
- var allDiv = document.getElementsByTagName("table");
- var i;
- for (i=0;i<xsl:text disable-output-escaping="yes"><</xsl:text>allDiv.length;i++) {
- var thisDiv = allDiv[i];
- if(thisDiv.id <xsl:text disable-output-escaping="yes">&&</xsl:text> thisDiv.id.indexOf('toc') != -1) {
- thisDiv.style.display = "none";
- var imgIdName = 'img' + thisDiv.id.substr(thisDiv.id.indexOf('c')+1);
- document.getElementById(imgIdName).src = "img/toc_plus.gif";
- }
- }
- return false;
- }
-
- </SCRIPT>
-
- <table width="157" border="0" cellpadding="0" cellspacing="-2" bgcolor="#E5E5E5">
- <tr><td colspan="3"><img src="img/dot.gif" height="16" width="1"/></td></tr>
- <tr bgcolor="{$headingBgColor}">
- <td><img src="img/dot.gif" height="1" width="4"/></td>
- <td class="colorhead">This Article's<br/>Table of Contents</td>
- <td><img src="img/dot.gif" height="1" width="4"/></td>
- </tr>
- <tr><td colspan="3"><img src="img/dot.gif" height="5" width="1"/></td></tr>
- </table>
-
- <xsl:if test="count(//lv3) > 0">
- <table width="155" border="0" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5">
- <tr><td colspan="3"><img src="img/dot.gif" height="5" width="1"/></td></tr>
- <tr>
- <td><img src="img/dot.gif" height="1" width="10"/></td>
- <td class="copy">
- <div class="tocblock" id="expand"><a href="javascript:void(0)" onClick="openAllTocNodes()" class="copy"><xsl:value-of select="$tocExpand"/></a></div>
- <div class="tocnone" id="collapse"><a href="javascript:void(0)" onClick="collapseAllTocNodes()" class="copy"><xsl:value-of select="$tocCollapse"/></a></div>
- </td>
- <td><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- <xsl:if test="$tocId != lv1[position() = 1]/@tocid">
- <tr><td colspan="3"><img src="img/dot.gif" height="5" width="1"/></td></tr>
- <tr><td valign="top" colspan="3" background="img/tinydot.gif" height="1"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- </xsl:if>
- <tr><td colspan="3"><img src="img/dot.gif" height="10" width="1"/></td></tr>
- </table>
- </xsl:if>
-
- <table width="155" border="0" cellpadding="0" cellspacing="0" bgcolor="#E5E5E5">
- <tr><td><xsl:apply-templates select="lv1"/></td></tr>
- </table>
- </xsl:template>
-
- <xsl:template match="lv1">
- <xsl:choose>
- <xsl:when test="$tocId = @tocid">
- <table width="155" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- <tr height="17">
- <td width="10"><img src="img/arrow_red_r.gif" height="17" width="8"/></td>
- <td width="14" valign="top" class="artcopy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <td width="117" valign="middle" class="copy">
- <xsl:choose>
- <xsl:when test="@seqnbr = 0 and count(/toc//headtitle) > 1">Introduction</xsl:when>
- <xsl:otherwise>
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table width="155" border="0" cellpadding="0" cellspacing="0">
- <tr height="17"><td width="10">
- <img src="img/dot.gif" height="1" width="10"/></td>
- <td width="14" valign="top" class="artcopy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td width="117" valign="middle" class="copy">
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute>
- <xsl:attribute name="class">copy</xsl:attribute>
- <xsl:choose>
- <xsl:when test="@seqnbr = 0">Introduction</xsl:when>
- <xsl:otherwise>
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td width="117" valign="middle" class="copy">
- <xsl:attribute name="class">copy</xsl:attribute>
- <xsl:choose>
- <xsl:when test="@seqnbr = 0">Introduction</xsl:when>
- <xsl:otherwise>
- <xsl:if test="headtitle != 'null'"><xsl:apply-templates select="headtitle"/></xsl:if>
- </xsl:otherwise>
- </xsl:choose>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select="lv2"/>
- </xsl:template>
-
-
- <xsl:template match="lv2">
- <xsl:choose>
- <xsl:when test="$tocId = @tocid">
- <table width="155" border="0" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF">
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- <xsl:choose>
- <xsl:when test="lv3">
- <tr height="17">
- <td width="24"><img src="img/arrow_red_r.gif" height="17" width="8"/></td>
- <td valign="top" width="14">
- <img>
- <xsl:attribute name="id">img<xsl:value-of select="@tocid"/></xsl:attribute>
- <xsl:attribute name="height">9</xsl:attribute>
- <xsl:attribute name="width">9</xsl:attribute>
- <xsl:attribute name="src">img/toc_plus.gif</xsl:attribute>
- <xsl:attribute name="border">0</xsl:attribute>
- <xsl:attribute name="onClick">changeTocNode('toc<xsl:value-of select="@tocid"/>','img<xsl:value-of select="@tocid"/>')</xsl:attribute>
- <xsl:attribute name="style">cursor:hand</xsl:attribute>
- <xsl:attribute name="vspace">4</xsl:attribute>
- </img>
- <img src="img/dot.gif" height="1" width="4"/>
- </td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td width="103" valign="middle" class="copy">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute>
- <xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td width="103" valign="middle" class="copy">
- <xsl:attribute name="class">copy</xsl:attribute><!-- is this redundant? -->
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- <tr>
- <td colspan="4">
- <table cellpadding="0" cellspacing="0" border="0" bgcolor="#EEEEEE" width="151">
- <xsl:attribute name="id">toc<xsl:value-of select="@tocid"/></xsl:attribute><!-- why not state these directly? -->
- <xsl:attribute name="style">display: none</xsl:attribute><!-- why not state these directly? -->
- <xsl:apply-templates select="lv3"/>
- </table>
- </td>
- </tr>
- </xsl:when>
- <xsl:otherwise>
- <tr height="17">
- <td width="24"><img src="img/arrow_red_r.gif" height="17" width="8"/></td>
- <td width="14" valign="top" class="copy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <td width="103" valign="middle" class="copy">
- <xsl:if test="headtitle != 'null'"><xsl:apply-templates select="headtitle"/></xsl:if>
- </td>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- </xsl:otherwise>
- </xsl:choose>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="lv3">
- <table border="0" cellspacing="0" cellpadding="0" width="155">
- <tr height="17">
- <td width="24"><img src="img/dot.gif" height="1" width="20"/></td>
- <td valign="top" width="14">
- <img>
- <xsl:attribute name="id">img<xsl:value-of select="@tocid"/></xsl:attribute>
- <xsl:attribute name="height">9</xsl:attribute>
- <xsl:attribute name="width">9</xsl:attribute>
- <xsl:attribute name="src">img/toc_plus.gif</xsl:attribute>
- <xsl:attribute name="border">0</xsl:attribute>
- <xsl:attribute name="onClick">changeTocNode('toc<xsl:value-of select="@tocid"/>','img<xsl:value-of select="@tocid"/>')</xsl:attribute>
- <xsl:attribute name="style">cursor:hand</xsl:attribute>
- <xsl:attribute name="vspace">4</xsl:attribute>
- </img>
- <img src="img/dot.gif" height="1" width="4"/>
- </td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td width="103" valign="middle" class="copy">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute>
- <xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td width="103" valign="middle" class="copy">
- <xsl:attribute name="class">copy</xsl:attribute><!-- isn't this redundant? -->
- <xsl:if test="headtitle != 'null'"><xsl:apply-templates select="headtitle"/></xsl:if>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- </table>
- <table cellpadding="0" cellspacing="0" border="0" width="155">
- <xsl:attribute name="id">toc<xsl:value-of select="@tocid"/></xsl:attribute>
- <xsl:attribute name="style">display: none</xsl:attribute>
- <xsl:apply-templates select="lv3">
- <xsl:with-param name="parentTocId"><xsl:value-of select="@tocid"/></xsl:with-param>
- </xsl:apply-templates>
- </table>
- </xsl:when>
- <xsl:otherwise>
- <table border="0" cellspacing="0" cellpadding="0" width="155">
- <tr height="17">
- <td width="24"><img src="img/dot.gif" height="1" width="20"/></td>
- <td width="14" valign="top"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td width="103" valign="middle" class="copy">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute>
- <xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if>
- </a>
- </td>
- </xsl:when>
- <xsl:otherwise>
- <td width="103" valign="middle" class="copy">
- <xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle != 'null'"><xsl:apply-templates select="headtitle"/></xsl:if>
- </td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- </table>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="lv3">
- <xsl:param name="parentTocId"/>
- <xsl:choose>
- <xsl:when test="$tocId = @tocid">
- <script language="JavaScript">changeTocNode('toc<xsl:value-of select="$parentTocId"/>','img<xsl:value-of select="$parentTocId"/>');</script>
- <tr>
- <td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- <tr bgcolor="#FFFFFF" height="17">
- <td width="30"><img src="img/arrow_red_r.gif" height="17" width="8"/></td>
- <td width="14" valign="top" class="copy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td width="97" valign="middle" class="copy">
- <a><xsl:attribute name="href">
- <xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute><xsl:attribute name="class">copy</xsl:attribute>
-
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></a></td>
- </xsl:when>
- <xsl:otherwise>
- <td width="97" valign="middle" class="copy"><xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- </xsl:when>
- <xsl:otherwise>
- <tr height="17"><td width="30"><img src="img/dot.gif" height="1" width="30"/></td>
- <td width="14" valign="top" class="copy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td width="97" valign="middle" class="copy">
- <a>
- <xsl:attribute name="href">
- <xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute>
- <xsl:attribute name="class">copy</xsl:attribute>
-
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></a></td>
- </xsl:when>
- <xsl:otherwise>
- <td width="97" valign="middle" class="copy">
- <xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle !='null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select="lv4">
- <xsl:with-param name="parentTocId"><xsl:value-of select="$parentTocId"/></xsl:with-param>
- </xsl:apply-templates>
- </xsl:template>
-
- <xsl:template match="lv4">
- <xsl:param name="parentTocId"/>
- <xsl:choose>
- <xsl:when test="$tocId = @tocid">
- <script language="JavaScript">changeTocNode('toc<xsl:value-of select="$parentTocId"/>','img<xsl:value-of select="$parentTocId"/>');</script>
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- <tr height="17" bgcolor="#FFFFFF"><td width="40"><img src="/bcom/images/ebol04_arrow_red_r.gif" height="17" width="8"/></td>
- <td width="14" valign="top" class="copy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td width="87" valign="middle" class="copy">
- <a><xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute>
- <xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></a></td>
- </xsl:when>
- <xsl:otherwise>
- <td width="87" valign="middle" class="copy"><xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- </xsl:when>
- <xsl:otherwise>
- <tr height="17"><td width="40"><img src="img/dot.gif" height="1" width="40"/></td>
- <td width="14" valign="top" class="copy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td valign="middle" class="copy">
- <a><xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute><xsl:attribute name="class">copy</xsl:attribute>
-
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></a></td>
- </xsl:when>
- <xsl:otherwise>
- <td valign="middle" class="copy"><xsl:attribute name="class">copy</xsl:attribute> <xsl:if test="headtitle !=
- 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates select="lv5">
- <xsl:with-param name="parentTocId"><xsl:value-of select="$parentTocId"/></xsl:with-param>
- </xsl:apply-templates>
- </xsl:template>
-
- <xsl:template match="lv5">
- <xsl:param name="parentTocId"/>
- <xsl:choose>
- <xsl:when test="$tocId = @tocid">
- <script language="JavaScript">changeTocNode('toc<xsl:value-of select="$parentTocId"/>','img<xsl:value-of select="$parentTocId"/>');</script>
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- <tr height="17" bgcolor="#FFFFFF"><td width="50"><img src="/bcom/images/ebol04_arrow_red_r.gif" height="17" width="8"/></td>
- <td width="14" valign="top" class="copy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td width="77" valign="middle" class="copy"><a><xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute><xsl:attribute name="class">copy</xsl:attribute>
-
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></a></td>
- </xsl:when>
- <xsl:otherwise>
- <td width="77" valign="middle" class="copy"><xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle !='null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- <tr><td colspan="4" valign="top" height="1" background="img/tinydot.gif"><img src="img/dot.gif" height="1" width="151"/></td></tr>
- </xsl:when>
- <xsl:otherwise>
- <tr height="17"><td width="50"><img src="img/dot.gif" height="1" width="50"/></td>
- <td width="14" valign="top" class="copy"><img src="img/art_grey_bullet.gif" height="9" width="14" vspace="4"/></td>
- <xsl:choose>
- <xsl:when test="@has_content = 'true'">
- <td valign="middle" class="copy"><a><xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?articleId=<xsl:value-of select="$articleId"/>&library=<xsl:value-of select="$library"/><xsl:text>#</xsl:text><xsl:value-of select="@tocid"/>.toc
- </xsl:attribute><xsl:attribute name="class">copy</xsl:attribute>
-
- <xsl:if test="headtitle != 'null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></a></td>
- </xsl:when>
- <xsl:otherwise>
- <td valign="middle" class="copy"><xsl:attribute name="class">copy</xsl:attribute>
- <xsl:if test="headtitle !='null'">
- <xsl:apply-templates select="headtitle"/>
- </xsl:if></td>
- </xsl:otherwise>
- </xsl:choose>
- <td width="10"><img src="img/dot.gif" height="1" width="10"/></td>
- </tr>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match = "headtitle">
- <xsl:apply-templates mode="text_mode"/>
- </xsl:template>
-
-
-
- <!-- undefined special characters are underlined -->
- <xsl:template match="charundef" mode="text_mode">
- <xsl:value-of select="@char"/>
- </xsl:template>
-
- </xsl:stylesheet>
-