home *** CD-ROM | disk | FTP | other *** search
/ Encyclopaedia Britannica …oncise Encyclopedia 2007 / bcd_concise07.iso / data / jars / oec2-lib.jar / xsl / cd / shared / Article.xsl next >
Encoding:
Extensible Markup Language  |  2006-08-25  |  38.0 KB  |  925 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE xsl:stylesheet [
  3.   <!ENTITY nbsp "<xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>">
  4.   <!ENTITY aelig "<xsl:text disable-output-escaping='yes'>&aelig;</xsl:text>">
  5.   <!ENTITY iacute "<xsl:text disable-output-escaping='yes'>&iacute;</xsl:text>">
  6.   <!ENTITY oacute "<xsl:text disable-output-escaping='yes'>&oacute;</xsl:text>">
  7. ]>
  8.  
  9. <xsl:stylesheet
  10.     xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  11.     xmlns:html="http://www.w3.org/TR/html4/loose.dtd"
  12.     exclude-result-prefixes="html"
  13.     version="1.0">
  14.     
  15.   <xsl:import href="../../online/shared/Variables.xsl"/>  
  16.   <xsl:import href="../../online/shared/RefLinks.xsl"/>
  17.   <xsl:import href="ContentTags.xsl"/>
  18.   <xsl:import href="ArticleRefLinks.xsl"/>
  19.   <xsl:import href="Variables.xsl"/>
  20.   <xsl:import href="Section.xsl"/>
  21.  
  22.  
  23.  
  24.   <xsl:output method="html" encoding="UTF-8"/>
  25.     <xsl:variable name="pixelWidth">40</xsl:variable>
  26.  
  27.   <xsl:param name="printFullArticle">false</xsl:param>
  28.   <xsl:param name="emailable"/>
  29.   <xsl:param name="selectedArticle"></xsl:param>
  30.  
  31.   <!-- Locale-dependent strings -->
  32.   <xsl:param name="locale"/>
  33.  
  34.   <!--xsl:param name="articleId"></xsl:param -->
  35.   <!--xsl:param name="tocId"></xsl:param -->
  36.   
  37.   <xsl:variable name="artId"><xsl:value-of select="/article/articleId/text()"/></xsl:variable>
  38.   <xsl:variable name="tocId"><xsl:value-of select="/article/tocId/text()"/></xsl:variable>
  39.   <xsl:variable name="lib"><xsl:value-of select="/article/ct/text()"/></xsl:variable>
  40.   <xsl:variable name="query"><xsl:value-of select="/article/Title/text()"/></xsl:variable>  
  41.   <xsl:variable name="highlightQuery"><xsl:value-of select="/article/queryStr/text()"/></xsl:variable>    
  42.   <xsl:variable name="geoId"><xsl:value-of select="/article/geoId/text()"/></xsl:variable>    
  43.   <xsl:variable name="prodId"><xsl:value-of select="/article/prodId/text()"/></xsl:variable>  
  44.   <xsl:variable name="mUrl"><xsl:value-of select="/article/mUrl/text()"/></xsl:variable>  
  45.   <xsl:variable name="prodName"><xsl:value-of select="/article/prodName/text()"/></xsl:variable>  
  46.     <xsl:variable name="articleTableWidth">
  47.       100%
  48.     </xsl:variable>
  49.  
  50.  
  51.     <xsl:variable name="bordercolor">
  52.         <xsl:choose>
  53.             <xsl:when test="$lib = 'EBI'">#7AAA67</xsl:when>
  54.             <xsl:when test="$lib = 'EBK'">#AC81C1</xsl:when>
  55.             <xsl:otherwise>#538CC5</xsl:otherwise>
  56.         </xsl:choose>
  57.     </xsl:variable>
  58.  
  59.     <xsl:variable name="highlightcolor">
  60.         <xsl:choose>
  61.             <xsl:when test="$lib = 'EBI'">#E4EEE1</xsl:when>
  62.             <xsl:when test="$lib = 'EBK'">#EEE6F3</xsl:when>
  63.             <xsl:otherwise>#DDE8F3</xsl:otherwise>
  64.         </xsl:choose>
  65.     </xsl:variable>
  66.  
  67.     <xsl:variable name="prevHeading">
  68.     <xsl:choose>
  69.       <xsl:when test="/article/currentPageNumber = 2">Introduction</xsl:when>
  70.       <xsl:otherwise><xsl:apply-templates select="//article/previousHeading" mode="pagination"/></xsl:otherwise>
  71.     </xsl:choose>
  72.   </xsl:variable>
  73.                                                                                                                              
  74.   <xsl:variable name="curHeading">
  75.     <xsl:choose>
  76.       <xsl:when test="/article/totalPageNumber = 1"></xsl:when>
  77.       <xsl:otherwise>
  78.           <xsl:choose>
  79.           <xsl:when test="/article/currentPageNumber = 1">Introduction</xsl:when>
  80.           <xsl:otherwise>
  81.                <xsl:apply-templates select="//article/currentHeading" mode="pagination"/>
  82.           </xsl:otherwise>
  83.           </xsl:choose>
  84.       </xsl:otherwise>
  85.     </xsl:choose >
  86.   </xsl:variable>
  87.  
  88.     <xsl:variable name="fromDeskReference">
  89.         <xsl:choose>
  90.             <xsl:when test="contains($serverName,'deskreference')">true</xsl:when>
  91.             <xsl:otherwise>false</xsl:otherwise>
  92.         </xsl:choose>
  93.     </xsl:variable>
  94.  
  95.     <xsl:variable name="ct"><xsl:value-of select="/article/ct/text()"/></xsl:variable>
  96.  
  97.     <xsl:template match="articleTitle" mode="header">
  98.         <xsl:apply-templates/>
  99.     </xsl:template>
  100.  
  101.     <xsl:template match="wordCount" mode="nonMember">
  102.         <xsl:apply-templates/>
  103.     </xsl:template>
  104.  
  105.     <xsl:template match="wordCount">
  106.     </xsl:template>
  107.  
  108.     <xsl:template match="articleTitle"/>
  109.  
  110. <xsl:template match="//article/totalPageNumber"/>
  111. <xsl:template match="//article/currentPageNumber"/>
  112. <xsl:template match="//article/currentHeading" />
  113. <xsl:template match="//article/currentHeading" mode="pagination">
  114.     <xsl:apply-templates />
  115. </xsl:template>
  116. <xsl:template match="//article/previousTocId"/>
  117. <xsl:template match="//article/previousHeading" />
  118. <xsl:template match="//article/previousHeading" mode="pagination">
  119.     <xsl:apply-templates />
  120. </xsl:template>
  121. <xsl:template match="//article/nextTocId"/>
  122. <xsl:template match="//article/nextHeading" />
  123. <xsl:template match="//article/nextHeading" mode="pagination">
  124.     <xsl:apply-templates />
  125. </xsl:template>
  126.  
  127. <xsl:template match="headingElements">
  128.  <xsl:if test="heading">
  129.   <h5><xsl:for-each select="heading">
  130.       <xsl:sort select="level"/>
  131.     <xsl:if test="position() > 1" > > </xsl:if>
  132.       <xsl:apply-templates select="xmlTitle"/> 
  133.   </xsl:for-each></h5>
  134.   </xsl:if>
  135. </xsl:template>
  136. <xsl:template match="authorblurb">
  137.     <span class="artcopy">
  138.         <xsl:apply-templates/>
  139.     </span>    
  140. </xsl:template>
  141.  
  142.  <xsl:template match="charundef">
  143.    <xsl:value-of select="@char"/>
  144.  </xsl:template>
  145.  
  146. <xsl:template match="article">
  147.       <STYLE type="text/css">
  148.         <xsl:choose>
  149.         <xsl:when test="$lib = 'EBK'">.h1 { font-family: "Britannica Unicode Sans Roman", "Trebuchet MS", Trebuchet, Arial, Geneva, sans-serif; font-size: 18pt; font-weight: bold; color: #666666; text-decoration: underline }</xsl:when>
  150.         <xsl:otherwise>.h1 { font-family: "Britannica Unicode Sans Roman", "Trebuchet MS", Trebuchet, Arial, Geneva, sans-serif; font-size: 16pt; font-weight: bold; color: #666666; text-decoration: underline }</xsl:otherwise>
  151.         </xsl:choose>
  152.         
  153.         <xsl:choose>
  154.         <xsl:when test="$lib = 'EBK'">.h2 { font-family: "Britannica Unicode Sans Roman", "Trebuchet MS", Trebuchet, Arial, Geneva, sans-serif; font-size: 16pt; font-weight: bold; color: #666666 }</xsl:when>
  155.         <xsl:otherwise>.h2 { font-family: "Britannica Unicode Sans Roman", "Trebuchet MS", Trebuchet, Arial, Geneva, sans-serif; font-size: 16pt; font-weight: bold; color: #666666 }</xsl:otherwise>
  156.         </xsl:choose>
  157.         
  158.         <xsl:choose>
  159.         <xsl:when test="$lib = 'EBK'">.h3,.h4,.h5,.h6 { font-family: "Britannica Unicode Sans Roman", "Trebuchet MS", Trebuchet, Arial, Geneva, sans-serif; font-size: 16pt; font-weight: bold; color: #666666 }</xsl:when>
  160.         <xsl:otherwise>.h3,.h4,.h5,.h6 { font-family: "Britannica Unicode Sans Roman", "Trebuchet MS", Trebuchet, Arial, Geneva, sans-serif; font-size: 14pt; font-weight: bold; color: #666666 }</xsl:otherwise>
  161.         </xsl:choose>                
  162.         </STYLE>
  163.       
  164.       <table cellpadding="0" cellspacing="0" border="0" >
  165.       <tr><td width="6"><img src="img/1x1_clear.gif"/></td><td>
  166.       <table cellpadding="0" cellspacing="0" border="0"> 
  167.    <xsl:if test="count(h0|h1|h2|h3|h4|h5) > 1">
  168.        <tr>
  169.         <td colspan="2" height="12"><img src="img/1x1_clear.gif" alt=""/></td>
  170.        </tr>
  171.        <tr>
  172.         <td colspan="2">
  173.             <a name="TOP">
  174.             <img src="img/bcd06_arrow_orange.png"/><b>  Introduction</b></a>
  175.         </td>
  176.         </tr>
  177.         <tr>
  178.         <td colspan="2" height="1" background="img/bcd06_dot_rule_grey.png"></td>
  179.         </tr>
  180.    </xsl:if>
  181.         <tr>
  182.         <td>
  183.         <br/>
  184.             <xsl:comment> querybold:begin </xsl:comment>
  185.             <xsl:apply-templates select="h0|h1|h2|h3|h4|h5"/>
  186.             <xsl:comment> querybold:end </xsl:comment>
  187.         </td>
  188.         
  189.         <td><img src="img/dot.gif" width="{$pixelWidth}" alt=""/></td>
  190.       </tr>
  191.       </table>
  192. <img src="img/dot.gif" height="20" width="1" alt=""/><br/>
  193.     <table bgcolor="#B2B2B2" width="100%" cellpadding="0" cellspacing="0"> 
  194.     <tr><td align="center" height="12">
  195.     
  196.      <a><xsl:attribute name="href">ebcid:com.britannica.oec2.identifier.ArticleIdentifier?articleId=<xsl:value-of select="$artId"/>&library=<xsl:value-of select="$lib"/>#TOP</xsl:attribute><img border="0" src="img/bcd06_backtotop.png" onmouseout="this.src='img/bcd06_backtotop.png'" onmouseover="this.src='img/bcd06_backtotop_ro.png'" alt="Back To Top"/></a>      
  197.  
  198.     </td></tr>
  199.     
  200.     
  201.     </table>
  202.     <xsl:choose>
  203.         <xsl:when test="$lib = 'CONCISE'">
  204.         <br/>
  205.         <table width="100%" cellpadding="0" cellspacing="0"> 
  206.             <tr><td align="left" height="12">
  207.                   <span class="searchgrey">
  208.                   <xsl:choose>
  209.                     <xsl:when test="$locale = 'es_MX'">
  210.                         ¿Necesita más? Solicite una PRUEBA GRATUITA de Britannica Online.
  211.                         <a href="javascript:shopurl">Oprima para saber cómo</a>.
  212.                     </xsl:when>
  213.                     <xsl:otherwise>
  214.                         Need More? Take a FREE TRIAL of Britannica Online. 
  215.                         <a href="javascript:shopurl">Click to learn how</a>.
  216.                     </xsl:otherwise>
  217.                  </xsl:choose>
  218.                  </span>
  219.               </td></tr>
  220.         </table>
  221.     </xsl:when>
  222.     <xsl:otherwise></xsl:otherwise>
  223.     </xsl:choose>
  224.     <!-- citation -->
  225.     <xsl:call-template name="citation"/>
  226.     </td></tr><tr><td height="36"><img src="img/1x1_clear.gif" alt=""/></td></tr></table>    
  227.   </xsl:template>
  228.  
  229.   <xsl:template name="citation">
  230.      <script language="JavaScript">
  231.         <xsl:choose>
  232.           <xsl:when test="$locale = 'es_MX'">
  233.             <xsl:text>
  234.                var mm = 
  235.                  [
  236.                    ["ene.","enero"],["feb.","febrero"],["mar.","marzo"],["abr.","abril"],
  237.                    ["mayo","mayo"],["jun.","junio"],["jul.","julio"],["ago.","agosto"],["sept.","September"],
  238.                    ["oct.","octubre"],["nov.","noviembre"],["dic.","diciembre"]
  239.                  ];
  240.            </xsl:text>
  241.          </xsl:when>
  242.          <xsl:otherwise>
  243.            <xsl:text>
  244.              var mm = 
  245.                [
  246.                  ["Jan.","January"],["Feb.","February"],["Mar.","March"],["Apr.","April"],
  247.                  ["May","May"],["June","June"],["July","July"],["Aug.","August"],["Sept.","September"],
  248.                  ["Oct.","October"],["Nov.","November"],["Dec.","December"]
  249.                ];
  250.           </xsl:text>
  251.         </xsl:otherwise>
  252.       </xsl:choose>
  253.      </script>
  254.  
  255.       <xsl:variable name="fullURL">
  256.       ebcid:com.britannica.oec2.identifier.ArticleIdentifier?articleId=<xsl:value-of select="$artId"/>
  257.     </xsl:variable>
  258.     
  259.     <xsl:variable name="sourceName">
  260.       <xsl:choose>
  261.         <xsl:when test="$lib = 'EBI'">Britannica Student Library</xsl:when>
  262.             <xsl:when test="$lib = 'EBK'">Britannica Elementary Library</xsl:when>
  263.             <xsl:otherwise>Encyclopædia Britannica</xsl:otherwise>
  264.           </xsl:choose>
  265.     </xsl:variable>
  266.  
  267.     <xsl:variable name="siteName">
  268.      <xsl:value-of select="$prodName"/>    
  269.     </xsl:variable>
  270.         
  271.     <xsl:variable name="tableWidth">
  272.         100%
  273.     </xsl:variable>
  274.  
  275.     <xsl:variable name="backgroundcolor">
  276.       <xsl:choose>
  277.             <xsl:when test="$lib = 'EBI'">#F1F6F0</xsl:when>
  278.             <xsl:when test="$lib = 'EBK'">#F7F2F9</xsl:when>
  279.             <xsl:otherwise>#EDF3F9</xsl:otherwise>
  280.           </xsl:choose>
  281.     </xsl:variable>
  282.  
  283.     <xsl:variable name="citationImage">
  284.         <xsl:choose>
  285.             <xsl:when test="$lib = 'EBI'">img/bcd06_citcap_bsl.png</xsl:when>
  286.             <xsl:when test="$lib = 'EBK'">img/bcd06_citcap_bel.png</xsl:when>
  287.             <xsl:otherwise>img/bcd06_citcap_eb.png</xsl:otherwise>
  288.         </xsl:choose>
  289.     </xsl:variable>
  290.         
  291.         <table> 
  292.              
  293.              <tr><td><img src="img/dot.gif" height="28" alt=""/></td></tr>
  294.             <tr>
  295.                 <xsl:if test="$emailable = 'false' and $printable = 'false'">
  296.                     <td><img src="img/dot.gif" width="40"/></td>
  297.                     <td><img src="img/dot.gif" width="1"/></td>
  298.                     <td><img src="img/dot.gif" width="2"/></td>
  299.                 </xsl:if>                
  300.             </tr>
  301.          </table>    
  302.             
  303.       <table border="0" cellspacing="0" cellpadding="0" height="13">
  304.       <tr>
  305.       <td>
  306.       <!--img src="{$leftImage}" border="0" height="13"/></td>
  307.       <td bgcolor="{$bordercolor}" width="13"></td>
  308.       <span class="citethisArticleText"><td height="13" bgcolor="{$bordercolor}"> <a name="cite"></a>To cite this article:</td></span>
  309.       <td bgcolor="{$bordercolor}" width="12"></td>
  310.       <td><img src="{$rightImage}" border="0" height="13"/!-->
  311.       <img src="{$citationImage}" border="0" height="13" alt=""/>
  312.       </td>
  313.       </tr>
  314.       </table>
  315.          <a name="cite">
  316.          <table cellspacing="0" cellpadding="0" border="1" bordercolor="{$bordercolor}" bgcolor="{$backgroundcolor}">
  317.           <tr><td>
  318.             <table border="0" cellspacing="0" cellpadding="0"><tr>
  319.                 <td width="12"><img src="img/dot.gif"/></td>                
  320.                 <td class="citationLink">
  321. <!-- TODO: parameterize the product year !!! -->
  322.                                   <xsl:choose>
  323.                                     <xsl:when test="$locale='es_MX'">
  324.                                        <p>
  325.                                      <i>Estilo Asosiación de Lenguas Modernas (MLA):</i><br/>
  326.                                          <b>"<xsl:apply-templates select="//Title" mode="citation"/>."</b> <u><xsl:value-of select="$prodName"/></u>. CD-ROM. Chicago: Encyclopædia Britannica. 2006. 
  327.                                        </p>
  328.                                        <p>
  329.                                          <i>Estilo Asosiación American de Psicología (APA):</i><br/>
  330.                                          <b><xsl:apply-templates select="//Title" mode="citation"/> [CD-ROM].</b> (2006). <i><xsl:value-of select="$prodName"/></i>. Chicago: Encyclopædia Britannica.
  331.                                        </p>
  332.                                        <p>
  333.                                          <i>Estilo Britannica:</i><br/>
  334.                                          <b>"<xsl:apply-templates select="//Title" mode="citation"/>."</b> <i><xsl:value-of select="$prodName"/> CD-ROM</i>. [Acessado <script>document.write(new Date().getDate());</script> <script>document.write(mm[new Date().getMonth()][1]);</script> <script>document.write(new Date().getFullYear());</script>].
  335.                                   </p>
  336.                                    </xsl:when>
  337.                                    <xsl:otherwise>
  338.                       <p>
  339.                     <i>MLA style:</i><br/><b>"<xsl:apply-templates select="//Title" mode="citation"/>."</b><u><xsl:value-of select="$sourceName"/></u>.  <script>document.write(new Date().getFullYear());</script>.  <xsl:value-of select="$siteName"/><xsl:text> </xsl:text><script>document.write(new Date().getDate());</script> <script>document.write(mm[new Date().getMonth()][0]);</script> <script>document.write(new Date().getFullYear());</script>.
  340.                       </p>
  341.                       <p>
  342.                     <i>APA style:</i><br/><b><xsl:apply-templates select="//Title" mode="citation"/>.</b> <xsl:value-of select="$sourceName"/>. Retrieved <script>document.write(mm[new Date().getMonth()][1]);</script> <script>document.write(new Date().getDate());</script>, <script>document.write(new Date().getFullYear());</script>, from <xsl:value-of select="$siteName"/>.
  343.                       </p>
  344.                       <p>
  345.                     <i>Britannica style:</i><br/><b>"<xsl:apply-templates select="//Title" mode="citation"/>."</b> <i><xsl:value-of select="$sourceName"/> </i> from <xsl:value-of select="$siteName"/>.[Accessed <script>document.write(mm[new Date().getMonth()][1]);</script> <script>document.write(new Date().getDate());</script>, <script>document.write(new Date().getFullYear());</script>].
  346.                       </p>
  347.                                    </xsl:otherwise>
  348.                                   </xsl:choose>
  349.                  </td><td width="12">
  350.                <img src="img/dot.gif"/>                
  351.              </td></tr></table>
  352.                      
  353.          </td></tr></table></a>
  354.          <br/>
  355.                 <xsl:if test="$printable = 'false' and $emailable ='false'">
  356.                     <img src="img/dot.gif" width="40"/>
  357.                 </xsl:if>
  358.   </xsl:template>
  359.     
  360.   <xsl:template match="Title" mode="citation">
  361.     <xsl:apply-templates/>
  362. </xsl:template>
  363.   
  364.  
  365.     <!--xsl:template name="articlePageHeader">
  366.         <p/>
  367.     <table align="center" border="0" cellpadding="2" cellspacing="0" width="{$articleTableWidth}">
  368.             <tr>
  369.                 <td>
  370.         <xsl:choose>
  371.                 <xsl:when test="//title">
  372.                     <xsl:choose>
  373.                 <xsl:when test="starts-with(../articleinfo/@contenttype, 'boy')">
  374.               <span class="arttitle">Year in Review <xsl:value-of select="number(substring(../articleinfo/@contenttype, 4, 4)) - number(1)"/>: <xsl:value-of select="../articleinfo/@contentsubtype"/><br/>
  375.               <xsl:apply-templates/><br/></span>
  376.             </xsl:when>
  377.                                                                                                                              
  378.             <xsl:when test="parent::sidebar">
  379.               <xsl:apply-templates select="titltxt" mode="sidebar"/>
  380.             </xsl:when>
  381.                                                                                                                              
  382.             <xsl:otherwise>
  383.               <span class="arttitle"><xsl:apply-templates select="//titltxt|//titlsub|//tabbrev|//chemsym|//taxon"/><br/></span>
  384.               <span class="arttitle"><xsl:apply-templates select="//titlsub|//tabbrev|//chemsym|//taxon"/><br/></span>              
  385.             </xsl:otherwise>
  386.             </xsl:choose>
  387.                 </xsl:when>
  388.                 <xsl:otherwise>
  389.               <span class="arttitle">
  390.                   <xsl:apply-templates select="articleTitle" mode="header"/>
  391.                   <xsl:apply-templates select="headingElements"/>
  392.                   <br/></span>
  393.                 </xsl:otherwise>
  394.             </xsl:choose>
  395.                                                                                                                              
  396.         <span class="artsubhead"><img src="/bcom/images/thistle.gif" alt=""/>
  397.         <xsl:choose>
  398.          <xsl:when test="$lib = 'EB'">
  399.             <xsl:text disable-output-escaping='yes'> </xsl:text>Encyclop<xsl:text disable-output-escaping='yes'>æ</xsl:text>dia Britannica Article
  400.           </xsl:when>        
  401.          <xsl:when test="$lib = 'EBI'">
  402.             <xsl:text disable-output-escaping='yes'> </xsl:text>Student Encyclopedia Article
  403.           </xsl:when>        
  404.          <xsl:when test="$lib = 'EBK'">
  405.             <xsl:text disable-output-escaping='yes'>nbsp;</xsl:text>Britannica Elementary Encyclopedia
  406.           </xsl:when>  
  407.          <xsl:when test="$lib = 'EBC'">
  408.            <xsl:text disable-output-escaping='yes'> </xsl:text>Concise Encyclopedia Article
  409.          </xsl:when>  
  410.          <xsl:when test="$lib = 'EBD'">
  411.             <xsl:text disable-output-escaping='yes'> </xsl:text>Compton's Desk Reference
  412.           </xsl:when>  
  413.           <xsl:otherwise/>      
  414.         </xsl:choose>
  415.         </span>
  416.           </td>
  417.         <xsl:if test="$printable = 'false' and $lib != 'ebc'">
  418.           <td class="artsubhead" align="right" valign="bottom">
  419.             <table border="0" cellpadding="0" cellspacing="0">
  420.         <tr><td height="1" rowspan="2"><img src="img/dot.gif" height="1" width="1"/></td><td rowspan="2" colspan="2"><img src="/bcom/images/ebol04_pagebox_crnr_tl.gif" height="4" width="4" alt=""/></td>
  421.             <td height="1" bgcolor="#CCCCCC"><img src="img/dot.gif" height="1" width="1"/></td>
  422.             <td colspan="2" rowspan="2"><img src="/bcom/images/ebol04_pagebox_crnr_tr.gif" height="4" width="4" alt=""/></td><td height="1" rowspan="2"><img src="img/dot.gif" height="1" width="1"/></td></tr>
  423.         <tr><td height="3"><img src="img/dot.gif" height="3" width="1"/></td></tr>
  424.         <tr><td class="artsubhead" height="14"><xsl:if test="/article/previousTocId"><a><xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?tocId=<xsl:value-of select="/article/previousTocId"/>&library=<xsl:value-of select="$lib"/></xsl:attribute><img align="middle" border="0" src="/bcom/images/ebol04_arrow_prev.gif"/></a><img src="img/dot.gif" height="1" width="4"/></xsl:if></td>
  425.             <td width="1" bgcolor="#CCCCCC"><img src="img/dot.gif" height="1" width="1"/></td>
  426.             <td width="3"><img src="img/dot.gif" height="1" width="1"/></td>
  427.             <td class="artsubhead" height="14">Page  <xsl:value-of select="/article/currentPageNumber"/>  of  <xsl:value-of select="/article/totalPageNumber"/> </td>
  428.             <td width="3"><img src="img/dot.gif" height="1" width="1"/></td><td width="1" bgcolor="#CCCCCC"><img src="img/dot.gif" height="1" width="1"/></td>
  429.             <td class="artsubhead" height="14"><xsl:if test="/article/nextTocId"><img src="img/dot.gif" height="1" width="4"/><a><xsl:attribute name="href"><xsl:value-of select="$articleURL"/>?tocId=<xsl:value-of select="/article/nextTocId"/></xsl:attribute><img align="middle" border="0" src="/bcom/images/ebol04_arrow_next.gif"/></a></xsl:if></td>
  430.         </tr>
  431.         <tr><td height="1" rowspan="2"></td>
  432.         <td rowspan="2" colspan="2"><img src="/bcom/images/ebol04_pagebox_crnr_bl.gif" height="4" width="4" alt=""/></td>
  433.         <td height="3"><img src="img/dot.gif" height="3" width="1"/></td>
  434.         <td colspan="2" rowspan="2"><img src="/bcom/images/ebol04_pagebox_crnr_br.gif" height="4" width="4" alt=""/></td>
  435.         <td height="1" rowspan="2"></td></tr>
  436.         <tr><td height="1" bgcolor="#CCCCCC"><img src="img/dot.gif" height="1" width="1"/></td></tr>
  437.         </table>
  438.           </td>
  439.           </xsl:if>
  440.         </tr>
  441.         </table>
  442.  
  443.     <table align="center" border="0" cellspacing="0" cellpadding="0" width="{$articleTableWidth}">
  444.       <tr><td><img src="img/dot.gif" height="1" alt=""/></td></tr>
  445.       <tr class="subblu"><td><img src="img/dot.gif" height="2" alt=""/></td></tr>
  446.     <xsl:if test="$printable = 'false'">
  447.         <tr><td><img width="1" height="6" src="img/dot.gif"/></td></tr>
  448.         <tr><td>
  449.         <a>
  450.         <xsl:choose>
  451.         <xsl:when test="$teaser = 'false'">
  452.                <xsl:attribute name="href"><xsl:value-of select="$printableArticleURL"/>?tocId=<xsl:value-of select="$tocId"/>&fullArticle=false<xsl:text disable-output-escaping="yes">&</xsl:text>library=<xsl:value-of select="$lib"/></xsl:attribute>
  453.         </xsl:when>
  454.         <xsl:otherwise>
  455.            <xsl:attribute name="href">
  456.                <xsl:value-of select="$teaserURL"/>
  457.            </xsl:attribute>
  458.         </xsl:otherwise>
  459.         </xsl:choose>
  460.         <xsl:attribute name="ONMOUSEOVER">image1.src="/bcom/images/ebol04_art_pp_ro.gif";</xsl:attribute>
  461.         <xsl:attribute name="ONMOUSEOUT">image1.src="/bcom/images/ebol04_art_pp.gif"</xsl:attribute>
  462.         <img name="image1" src="/bcom/images/ebol04_art_pp.gif" border="0" alt="Print Page" height="9" width="53"/></a>
  463.         <img src="img/dot.gif" alt="" height="1" width="2"/>
  464.         <img src="/bcom/images/ebol04_art_grey_bullet.gif"/>
  465.         <img src="img/dot.gif" alt="" height="1" width="2"/>
  466.  
  467.         <a>
  468.         <xsl:choose>
  469.         <xsl:when test="$teaser = 'false'">
  470.                <xsl:attribute name="href"><xsl:value-of select="$printableArticleURL"/>?articleId=<xsl:value-of select="$artId"/>&fullArticle=true&tocId=<xsl:value-of select="$tocId"/></xsl:attribute>
  471.             </xsl:when>
  472.             <xsl:otherwise>
  473.                <xsl:attribute name="href">
  474.                 <xsl:value-of select="$teaserURL"/>
  475.                </xsl:attribute>
  476.             </xsl:otherwise>
  477.             </xsl:choose>
  478.         <xsl:attribute name="ONMOUSEOVER">image1a.src="/bcom/images/ebol04_art_pa_ro.gif";</xsl:attribute>
  479.         <xsl:attribute name="ONMOUSEOUT">image1a.src="/bcom/images/ebol04_art_pa.gif"</xsl:attribute>
  480.         <img name="image1a" src="/bcom/images/ebol04_art_pa.gif" height="9" width="65" alt="Print Article" border="0"/></a>
  481.         <img src="img/dot.gif" alt="" height="1" width="2"/>
  482.         <img src="/bcom/images/ebol04_art_grey_bullet.gif"/>
  483.         <img src="img/dot.gif" alt="" height="1" width="2"/>
  484.                                                                                                                              
  485.         <a>
  486.         <xsl:choose>
  487.         <xsl:when test="$teaser = 'false'">
  488.            <xsl:attribute name="href">/email/article?email_type=<xsl:value-of select="$emailType"/>&articleId=<xsl:value-of select="$artId"/>&tocId=<xsl:value-of select="$tocId"/></xsl:attribute>
  489.         </xsl:when>
  490.         <xsl:otherwise>
  491.            <xsl:attribute name="href">
  492.                <xsl:value-of select="$teaserURL"/>
  493.            </xsl:attribute>
  494.         </xsl:otherwise>
  495.         </xsl:choose>
  496.         <xsl:attribute name="ONMOUSEOVER">image2.src="/bcom/images/ebol04_art_ea_ro.gif";</xsl:attribute>
  497.         <xsl:attribute name="ONMOUSEOUT">image2.src="/bcom/images/ebol04_art_ea.gif"</xsl:attribute>
  498.         <img name="image2" src="/bcom/images/ebol04_art_ea.gif" alt="E-mail Article" height="9" width="69"  border="0"/></a>
  499.         <img src="img/dot.gif" alt="" height="1" width="2"/>
  500.         <img src="/bcom/images/ebol04_art_grey_bullet.gif"/>
  501.         <img src="img/dot.gif" alt="" height="1" width="2"/>
  502.                                                                                                                              
  503.        <a href="#cite">
  504.         <xsl:attribute name="ONMOUSEOVER">image3.src="/bcom/images/ebol04_art_ca_ro.gif"</xsl:attribute>
  505.         <xsl:attribute name="ONMOUSEOUT">image3.src="/bcom/images/ebol04_art_ca.gif"</xsl:attribute>
  506.         <img name="image3" src="/bcom/images/ebol04_art_ca.gif" alt="Cite Article" height="9" width="58" border="0"/></a>
  507.                     </td></tr>
  508.         
  509.         <xsl:if test="$lib = 'ebc' and $teaser = 'true'">
  510.             <tr><td>            
  511.             <img src="img/dot.gif" alt="" height="20" width="1"/>
  512.             </td></tr>            
  513.             <tr>
  514.             <td>            
  515.                 <img src="/bcom/images/upsl2_article_concise_note.gif" width="253"/>
  516.             </td>
  517.             </tr>            
  518.         </xsl:if>                    
  519.     </xsl:if>
  520.     <tr><td><xsl:apply-templates select="uninvrtitl"/></td></tr>
  521.     </table>
  522.    <xsl:choose>
  523.    <xsl:when test="parent::btw">
  524.     <span class="h1">BTW...</span><br/><hr/>
  525.    </xsl:when>
  526.    <xsl:when test="parent::bup">
  527.     <span class="h1">
  528.        <xsl:choose>
  529.          <xsl:when test="@ty='editors'">
  530.             Editor's Note<br/><hr/>
  531.          </xsl:when>
  532.          <xsl:when test="@ty='authors'">
  533.             Author's Note<br/><hr/>
  534.          </xsl:when>
  535.          <xsl:otherwise>
  536.             Researchers' Note<br/><hr/>
  537.          </xsl:otherwise>
  538.        </xsl:choose>
  539.     </span>
  540.    </xsl:when>
  541.    </xsl:choose>
  542.   </xsl:template -->
  543.   
  544.     
  545.   <xsl:template match="inline">  
  546.         <xsl:apply-templates select="asset"/>
  547.         <xsl:if test="count(../inline) = 1"><br/></xsl:if>
  548.   </xsl:template>
  549.  
  550.   <xsl:template match="asset">
  551.     <xsl:choose>
  552.     <xsl:when test="parent::inline">
  553.     
  554.       <center>
  555.         <xsl:call-template name="regular_fullsize"/>
  556.       </center>
  557.       
  558.     </xsl:when>
  559.     <xsl:otherwise>
  560.       <a>
  561.         <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/>&type=I</xsl:attribute>
  562.         <xsl:apply-templates/>
  563.       </a>
  564.     </xsl:otherwise>
  565.     </xsl:choose>
  566.   </xsl:template>
  567.  
  568.   <xsl:template name="regular_thumb">
  569.     <img class="imageborders">
  570.       <xsl:attribute name="width"><xsl:value-of select="@thumbwdth"/></xsl:attribute>
  571.       <xsl:attribute name="height"><xsl:value-of select="@thumbhgt"/></xsl:attribute>
  572.       <xsl:attribute name="src"><xsl:value-of select="$thumbURL"/>?id=<xsl:value-of select="@id"/></xsl:attribute>
  573.       <xsl:attribute name="alt"><xsl:value-of select="@mediatype"/><xsl:if test="../thumbcap">:<xsl:value-of select="../thumbcap"/></xsl:if></xsl:attribute>
  574.     </img>
  575.   </xsl:template>
  576.  
  577.   <xsl:template name="regular_fullsize">
  578.        <xsl:param name="alt"/> 
  579.        <xsl:text disable-output-escaping="yes"></p></xsl:text> 
  580.        <center>
  581.     <img>
  582.       <xsl:attribute name="width"><xsl:value-of select="@wdth"/></xsl:attribute>
  583.       <xsl:attribute name="height"><xsl:value-of select="@hgt"/></xsl:attribute>
  584.       <xsl:attribute name="alt"><xsl:choose><xsl:when test="$alt='flag'">flag</xsl:when><xsl:otherwise><xsl:value-of select="@mediatype"/><xsl:if test="../thumbcap">:<xsl:value-of select="../thumbcap"/></xsl:if></xsl:otherwise></xsl:choose></xsl:attribute>
  585.       <xsl:attribute name="src"><xsl:value-of select="$inlineImageURL"/>?binaryId=<xsl:value-of select="@id"/></xsl:attribute>
  586.     </img>
  587.     </center>
  588.     <xsl:text disable-output-escaping="yes"><p class="artcopy"></xsl:text>
  589.   </xsl:template>
  590.  
  591.   <xsl:template match="thumbcap[$emailable = 'true']"/>
  592.  
  593.   <xsl:template match="thumbcred[$emailable != 'true']">
  594.      <span class="caption"><i><xsl:apply-templates/></i></span>
  595.   </xsl:template>
  596.  
  597. <!-- END ART AND IMG -->
  598.  
  599. <!-- START MATH -->
  600. <!--xsl:template match="formula">
  601.   <p class="formula"><center><xsl:apply-templates/></center></p>
  602. </xsl:template -->
  603.  
  604. <xsl:template match="num">
  605.   <sup><xsl:apply-templates/></sup>
  606. </xsl:template>
  607.  
  608. <xsl:template match="den">
  609.   <sub><xsl:apply-templates/></sub>
  610. </xsl:template>
  611.  
  612. <xsl:template match="frac">
  613.  <xsl:choose>
  614.     <xsl:when test="parent::formula">
  615.        <xsl:text> </xsl:text><xsl:apply-templates select="num"/>/<xsl:apply-templates select="den"/>
  616.      </xsl:when>
  617.     <xsl:otherwise>
  618.        <span class="formula"><xsl:text> </xsl:text><xsl:apply-templates select="num"/>/<xsl:apply-templates select="den"/></span>
  619.     </xsl:otherwise>
  620.  </xsl:choose>
  621. </xsl:template>
  622.  
  623. <xsl:template match="sup|upper">
  624.   <span class="supandsub"><sup><xsl:apply-templates/></sup></span>
  625. </xsl:template>
  626.  
  627. <xsl:template match="sub|lower">
  628.   <span class="supandsub"><sub><xsl:apply-templates/></sub></span>
  629. </xsl:template>
  630.  
  631. <!-- END MATH -->
  632.  
  633. <!-- start xrefs -->
  634.  
  635. <xsl:template match="tbl" mode="thumb">
  636.   <xsl:choose>
  637.     <xsl:when test="$teaser = 'true'">
  638.       <xsl:apply-templates select="." mode="teaser"/>
  639.     </xsl:when>
  640.     <xsl:when test="$printable = 'true'">
  641.       <xsl:apply-templates select="." mode="print"/>
  642.     </xsl:when>
  643.     <xsl:otherwise>
  644.       <xsl:apply-templates select="." mode="thumblink"/>
  645.     </xsl:otherwise>
  646.   </xsl:choose>
  647.                                                                                                                              
  648. </xsl:template>
  649.  
  650. <xsl:template match="tbl" mode="teaser">
  651.   <p>
  652.     <a class="artcopybold">
  653.       <xsl:attribute name="href"><xsl:value-of select="$teaserURL"/></xsl:attribute>
  654.       <xsl:for-each select=".">
  655.         <xsl:if test="position() = 1">
  656.           <xsl:call-template name="table_thumb"/>
  657.           <br/>
  658.         </xsl:if>
  659.       </xsl:for-each>
  660.                                                                                                                              
  661.     </a>
  662.   </p>
  663. </xsl:template>
  664.  
  665. <xsl:template match="tbl" mode="print">
  666.  <p>
  667.   <xsl:for-each select=".">
  668.     <xsl:if test="position() = 1">
  669.       <xsl:call-template name="table_thumb"/>
  670.         <br/>
  671.     </xsl:if>
  672.   </xsl:for-each>
  673.   </p>
  674. </xsl:template>
  675.  
  676. <xsl:template match="tbl" mode="thumblink">
  677.   <p>
  678.       <a class="artcopybold">
  679.         <!--xsl:attribute name="href">javascript:openTable('<xsl:value-of select="@tocid"/>')</xsl:attribute -->
  680.           <xsl:attribute name="href"><xsl:value-of select="$tableArticleURL"/>?tocId=<xsl:value-of select="@tocid"/></xsl:attribute>
  681.         <xsl:for-each select=".">
  682.           <xsl:if test="position() = 1">
  683.             <xsl:call-template name="table_thumb"/>
  684.           </xsl:if>
  685.         </xsl:for-each>
  686.       </a>
  687.     </p>
  688. </xsl:template>
  689.  
  690. <xsl:template name="table_thumb">
  691.   <br><img class="imageborders">
  692.     <xsl:attribute name="width"><xsl:value-of select="@thumbwdth"/></xsl:attribute>
  693.     <xsl:attribute name="height"><xsl:value-of select="@thumbhgt"/></xsl:attribute>
  694.     <xsl:attribute name="src">
  695.       <xsl:value-of select="$thumbURL"/>?id=<xsl:value-of select="@assetid"/>
  696.     </xsl:attribute>
  697.     <xsl:attribute name="alt"><xsl:value-of select="."/></xsl:attribute>
  698.   </img>
  699.   </br>
  700. </xsl:template>
  701.  
  702.   <xsl:template match="tbl[$emailable != 'true']">
  703.     <a>
  704. <xsl:choose>
  705. <xsl:when test="$printableArticleURL != ''">
  706.       <xsl:attribute name="href"><xsl:value-of select="$printableArticleURL"/>?tocId=<xsl:value-of select="@tocid"/></xsl:attribute>
  707. </xsl:when>
  708. <xsl:otherwise>
  709.       <xsl:attribute name="href"><xsl:value-of select="$tableArticleURL"/>?tocId=<xsl:value-of select="@tocid"/></xsl:attribute>
  710. </xsl:otherwise>
  711. </xsl:choose>
  712.       <xsl:apply-templates/>
  713.     </a>
  714.   </xsl:template>
  715.  
  716. <!-- elements from % text -->
  717.  
  718.  
  719.  
  720. <!-- start P and firstpar elements -->
  721.  
  722. <xsl:template match="p[$emailable = 'true']">
  723.   <p><xsl:apply-templates/></p>
  724. </xsl:template>
  725.  
  726. <xsl:template match="fpartxt[$emailable = 'true']">
  727.   <p><i><xsl:apply-templates select="//tvtype | //tvarint | //tvcnjtive | //tvcnjtion" mode="tvar"/></i><br/><xsl:apply-templates/></p>
  728. </xsl:template>
  729.  
  730. <!-- note: for next two templates, don't generate thumbnails for inline
  731.      images (@ty='i') -->
  732.  
  733. <xsl:template match="p[$emailable != 'true']">
  734.     <xsl:if test="descendant::asset[not(parent::inline) and @thumbwdth > 0]">
  735.       <table align="left" width="120" cellspacing="0" cellpadding="0" border="0"><tr>
  736.         <td width="110" valign="top"><xsl:apply-templates select="descendant::assembly" mode="thumb"/></td>
  737.         <td width="10"/>
  738.       </tr></table> 
  739.       
  740.     </xsl:if>
  741.     <p><xsl:apply-templates/>
  742.     <xsl:choose>
  743.       <xsl:when test="not(following-sibling::p)"><br clear="all"/></xsl:when>
  744.       <xsl:when test="following-sibling::p[position() = 1]/descendant::asset[not(parent::inline) and @thumbwdth > 0]"><br clear="all"/></xsl:when>
  745.     </xsl:choose>
  746.     </p>  
  747.   
  748.   </xsl:template>
  749.  
  750.  
  751.  
  752. <xsl:template match="fpartxt[$emailable != 'true']">
  753.  
  754.     <xsl:if test="..//asset[not(parent::inline) and @thumbwdth > 0]">
  755.       <table align="left" width="120" cellspacing="0" cellpadding="0" border="0"><tr>
  756.         <td width="110" valign="top"><xsl:apply-templates select="..//assembly" mode="thumb"/></td>
  757.         <td width="10"/>
  758.       </tr></table>
  759.     </xsl:if>
  760.     <p>
  761.          <!-- this is to fix bcd's bug2394.
  762.             xhtml output method which uses by bcd converts<i></i> to<i/> which displays italics text for
  763.             most articles. html output method which uses by site leaves the xsl output to <i></i> if it's 
  764.             empty and there is no display problem. karen 
  765.  
  766.  
  767.         <xsl:if test="//tvtype or //tvarint or //tvcnjtive or //tvcnjtion">
  768.         <i><xsl:apply-templates select="//tvtype | //tvarint | //tvcnjtive | //tvcnjtion" mode="tvar"/></i><br/>
  769.         </xsl:if>
  770.                                                                                                                                                                                                                                                                      -->
  771.     <xsl:apply-templates/>
  772.     <xsl:choose>
  773.       <xsl:when test="not(parent::node()/following-sibling::p)"><br clear="all"/></xsl:when>
  774.       <xsl:when test="parent::node()/following-sibling::p[position() = 1]/descendant::asset[not(parent::inline) and @thumbwdth > 0]"><br clear="all"/></xsl:when>
  775.     </xsl:choose>
  776.     </p>
  777.   </xsl:template>
  778.  
  779. <!-- end firstpar -->
  780.  
  781. <!-- end P and firstpar elements -->
  782.  
  783. <xsl:template match="assembly[$emailable != 'true']">
  784.   <a>
  785.     <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/></xsl:attribute>
  786.     <xsl:apply-templates select="arttext"/>
  787.   </a>
  788. </xsl:template>
  789.  
  790.   <xsl:template match="assembly" mode="thumb">
  791.     <p>
  792.     <a>
  793.       <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/></xsl:attribute>
  794.     <xsl:for-each select="asset">
  795.       <xsl:if test="position()=1 and @thumbwdth > 0">
  796.         <xsl:call-template name="regular_thumb"/>
  797.         <br/>
  798.       </xsl:if>
  799.     </xsl:for-each>
  800.     </a>
  801.     <xsl:apply-templates select="thumbcap"/>
  802.     </p>  
  803.   </xsl:template>
  804.  
  805.     <xsl:template match="thumbcap[$emailable != 'true']">
  806.         <span class="caption"><xsl:apply-templates/></span>
  807.     </xsl:template>
  808.  
  809.   <xsl:template match="authcr">
  810.    <!-- surpress the author link if it's editor of EB -->
  811.     <xsl:if test="not(@persid='4419') and @persid != ''">
  812.     
  813.     <a>
  814.       <xsl:attribute name="href"><xsl:value-of select="$authorURL"/>?id=<xsl:value-of select="@persid"/></xsl:attribute>
  815.       <xsl:apply-templates/>
  816.     </a>
  817.         
  818.     </xsl:if><br/><br/>
  819.   </xsl:template>
  820.  
  821.   <xsl:template match="signature">
  822.     <a>
  823.       <xsl:attribute name="href"><xsl:value-of select="$authorURL"/>?id=<xsl:value-of select="@persid"/></xsl:attribute>
  824.       <xsl:apply-templates/>
  825.     </a>
  826.  
  827.   </xsl:template>
  828.  
  829.   <xsl:template match="bdate">
  830.     <span class="artcopybold">
  831.     <xsl:if test="//firstpar/pairbio and position() = 1">
  832.       Respectively, <br/>
  833.     </xsl:if>
  834.     <xsl:choose>
  835.       <xsl:when test="@ty='fl'"> flourished </xsl:when>
  836.       <xsl:when test="@ty='bap'"> baptized </xsl:when>
  837.       <xsl:otherwise> born </xsl:otherwise>
  838.     </xsl:choose>
  839.     <xsl:apply-templates/>
  840.     <br/>
  841.     </span>
  842.   </xsl:template>
  843.  
  844.  
  845.   <xsl:template match="ddate">
  846.     <span class="artcopybold">
  847.     <xsl:choose>
  848.       <xsl:when test="@ty='kill'"> killed in action </xsl:when>
  849.       <xsl:when test="@ty='bur'"> buried </xsl:when>
  850.       <xsl:when test="@ty='found'"> found dead </xsl:when>
  851.       <xsl:otherwise> died </xsl:otherwise>
  852.     </xsl:choose>
  853.     <xsl:apply-templates/>
  854.     <br/><br/>
  855.     </span>
  856.   </xsl:template>
  857.  
  858. <!-- display headtitle only and only if it's print or email. otherwise, supress it due to section breadcrumb-->
  859. <xsl:template match="headtitle">
  860.     <!--xsl:if test="$printFullArticle = 'true' or $emailable='true'">
  861.         <h5><xsl:apply-templates/></h5>
  862.     </xsl:if -->
  863.     <h6><xsl:apply-templates/></h6>
  864. </xsl:template>
  865.  
  866.  
  867. <!-- first two head levels requir expanded node set for bboy -->
  868. <xsl:template match="h1">
  869.   <span class="h1">
  870.     <a>
  871.       <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
  872.     <xsl:apply-templates select="headtitle"/>
  873.     </a>
  874.   </span>
  875.     <xsl:apply-templates select="*[name() != 'headtitle']"/>
  876. </xsl:template>
  877.  
  878. <xsl:template match="h2">
  879.   <span class="h2">
  880.     <a>
  881.       <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
  882.     <xsl:apply-templates select="headtitle"/>
  883.     </a>
  884.   </span>
  885.     <xsl:apply-templates select="*[name() != 'headtitle']"/>
  886. </xsl:template>
  887.  
  888. <xsl:template match="h3">
  889.   <span class="h3">
  890.     <a>
  891.       <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
  892.     <xsl:apply-templates select="headtitle"/>
  893.     </a>
  894.   </span>
  895.     <xsl:apply-templates select="*[name() != 'headtitle']"/>
  896. </xsl:template>
  897.  
  898. <xsl:template match="h4">
  899.   <span class="h3">
  900.     <a>
  901.       <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
  902.       <xsl:apply-templates select="headtitle"/>
  903.     </a>
  904.   </span>
  905.     <xsl:apply-templates select="*[name() != 'headtitle']"/>
  906. </xsl:template>
  907.  
  908. <xsl:template match="h5">
  909.   <span class="h5">
  910.     <a>
  911.       
  912.       <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
  913.       <xsl:apply-templates select="headtitle"/>
  914.     </a>
  915.   </span>
  916.     <xsl:apply-templates select="*[name() != 'headtitle']"/>
  917. </xsl:template>
  918.  
  919.   <xsl:template match="uninvrtitl">
  920.     <span class="arttitle"><xsl:apply-templates/></span>
  921.   </xsl:template>
  922.  
  923.  
  924. </xsl:stylesheet>
  925.