home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE xsl:stylesheet [
- <!ENTITY nbsp "<xsl:text disable-output-escaping='yes'> </xsl:text>">
- <!ENTITY aelig "<xsl:text disable-output-escaping='yes'>æ</xsl:text>">
- <!ENTITY iacute "<xsl:text disable-output-escaping='yes'>í</xsl:text>">
- <!ENTITY oacute "<xsl:text disable-output-escaping='yes'>ó</xsl:text>">
- ]>
-
- <xsl:stylesheet
- xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:html="http://www.w3.org/TR/html4/loose.dtd"
- exclude-result-prefixes="html"
- version="1.0">
-
- <xsl:import href="../../online/shared/Variables.xsl"/>
- <xsl:import href="../../online/shared/RefLinks.xsl"/>
- <xsl:import href="ContentTags.xsl"/>
- <xsl:import href="ArticleRefLinks.xsl"/>
- <xsl:import href="Variables.xsl"/>
- <xsl:import href="Section.xsl"/>
-
-
-
- <xsl:output method="html" encoding="UTF-8"/>
- <xsl:variable name="pixelWidth">40</xsl:variable>
-
- <xsl:param name="printFullArticle">false</xsl:param>
- <xsl:param name="emailable"/>
- <xsl:param name="selectedArticle"></xsl:param>
-
- <!-- Locale-dependent strings -->
- <xsl:param name="locale"/>
-
- <!--xsl:param name="articleId"></xsl:param -->
- <!--xsl:param name="tocId"></xsl:param -->
-
- <xsl:variable name="artId"><xsl:value-of select="/article/articleId/text()"/></xsl:variable>
- <xsl:variable name="tocId"><xsl:value-of select="/article/tocId/text()"/></xsl:variable>
- <xsl:variable name="lib"><xsl:value-of select="/article/ct/text()"/></xsl:variable>
- <xsl:variable name="query"><xsl:value-of select="/article/Title/text()"/></xsl:variable>
- <xsl:variable name="highlightQuery"><xsl:value-of select="/article/queryStr/text()"/></xsl:variable>
- <xsl:variable name="geoId"><xsl:value-of select="/article/geoId/text()"/></xsl:variable>
- <xsl:variable name="prodId"><xsl:value-of select="/article/prodId/text()"/></xsl:variable>
- <xsl:variable name="mUrl"><xsl:value-of select="/article/mUrl/text()"/></xsl:variable>
- <xsl:variable name="prodName"><xsl:value-of select="/article/prodName/text()"/></xsl:variable>
- <xsl:variable name="articleTableWidth">
- 100%
- </xsl:variable>
-
-
- <xsl:variable name="bordercolor">
- <xsl:choose>
- <xsl:when test="$lib = 'EBI'">#7AAA67</xsl:when>
- <xsl:when test="$lib = 'EBK'">#AC81C1</xsl:when>
- <xsl:otherwise>#538CC5</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="highlightcolor">
- <xsl:choose>
- <xsl:when test="$lib = 'EBI'">#E4EEE1</xsl:when>
- <xsl:when test="$lib = 'EBK'">#EEE6F3</xsl:when>
- <xsl:otherwise>#DDE8F3</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="prevHeading">
- <xsl:choose>
- <xsl:when test="/article/currentPageNumber = 2">Introduction</xsl:when>
- <xsl:otherwise><xsl:apply-templates select="//article/previousHeading" mode="pagination"/></xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="curHeading">
- <xsl:choose>
- <xsl:when test="/article/totalPageNumber = 1"></xsl:when>
- <xsl:otherwise>
- <xsl:choose>
- <xsl:when test="/article/currentPageNumber = 1">Introduction</xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="//article/currentHeading" mode="pagination"/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:otherwise>
- </xsl:choose >
- </xsl:variable>
-
- <xsl:variable name="fromDeskReference">
- <xsl:choose>
- <xsl:when test="contains($serverName,'deskreference')">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="ct"><xsl:value-of select="/article/ct/text()"/></xsl:variable>
-
- <xsl:template match="articleTitle" mode="header">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="wordCount" mode="nonMember">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="wordCount">
- </xsl:template>
-
- <xsl:template match="articleTitle"/>
-
- <xsl:template match="//article/totalPageNumber"/>
- <xsl:template match="//article/currentPageNumber"/>
- <xsl:template match="//article/currentHeading" />
- <xsl:template match="//article/currentHeading" mode="pagination">
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="//article/previousTocId"/>
- <xsl:template match="//article/previousHeading" />
- <xsl:template match="//article/previousHeading" mode="pagination">
- <xsl:apply-templates />
- </xsl:template>
- <xsl:template match="//article/nextTocId"/>
- <xsl:template match="//article/nextHeading" />
- <xsl:template match="//article/nextHeading" mode="pagination">
- <xsl:apply-templates />
- </xsl:template>
-
- <xsl:template match="headingElements">
- <xsl:if test="heading">
- <h5><xsl:for-each select="heading">
- <xsl:sort select="level"/>
- <xsl:if test="position() > 1" > > </xsl:if>
- <xsl:apply-templates select="xmlTitle"/>
- </xsl:for-each></h5>
- </xsl:if>
- </xsl:template>
- <xsl:template match="authorblurb">
- <span class="artcopy">
- <xsl:apply-templates/>
- </span>
- </xsl:template>
-
- <xsl:template match="charundef">
- <xsl:value-of select="@char"/>
- </xsl:template>
-
- <xsl:template match="article">
- <STYLE type="text/css">
- <xsl:choose>
- <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>
- <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>
- </xsl:choose>
-
- <xsl:choose>
- <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>
- <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>
- </xsl:choose>
-
- <xsl:choose>
- <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>
- <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>
- </xsl:choose>
- </STYLE>
-
- <table cellpadding="0" cellspacing="0" border="0" >
- <tr><td width="6"><img src="img/1x1_clear.gif"/></td><td>
- <table cellpadding="0" cellspacing="0" border="0">
- <xsl:if test="count(h0|h1|h2|h3|h4|h5) > 1">
- <tr>
- <td colspan="2" height="12"><img src="img/1x1_clear.gif" alt=""/></td>
- </tr>
- <tr>
- <td colspan="2">
- <a name="TOP">
- <img src="img/bcd06_arrow_orange.png"/><b> Introduction</b></a>
- </td>
- </tr>
- <tr>
- <td colspan="2" height="1" background="img/bcd06_dot_rule_grey.png"></td>
- </tr>
- </xsl:if>
- <tr>
- <td>
- <br/>
- <xsl:comment> querybold:begin </xsl:comment>
- <xsl:apply-templates select="h0|h1|h2|h3|h4|h5"/>
- <xsl:comment> querybold:end </xsl:comment>
- </td>
-
- <td><img src="img/dot.gif" width="{$pixelWidth}" alt=""/></td>
- </tr>
- </table>
- <img src="img/dot.gif" height="20" width="1" alt=""/><br/>
- <table bgcolor="#B2B2B2" width="100%" cellpadding="0" cellspacing="0">
- <tr><td align="center" height="12">
-
- <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>
-
- </td></tr>
-
-
- </table>
- <xsl:choose>
- <xsl:when test="$lib = 'CONCISE'">
- <br/>
- <table width="100%" cellpadding="0" cellspacing="0">
- <tr><td align="left" height="12">
- <span class="searchgrey">
- <xsl:choose>
- <xsl:when test="$locale = 'es_MX'">
- ¿Necesita más? Solicite una PRUEBA GRATUITA de Britannica Online.
- <a href="javascript:shopurl">Oprima para saber cómo</a>.
- </xsl:when>
- <xsl:otherwise>
- Need More? Take a FREE TRIAL of Britannica Online.
- <a href="javascript:shopurl">Click to learn how</a>.
- </xsl:otherwise>
- </xsl:choose>
- </span>
- </td></tr>
- </table>
- </xsl:when>
- <xsl:otherwise></xsl:otherwise>
- </xsl:choose>
- <!-- citation -->
- <xsl:call-template name="citation"/>
- </td></tr><tr><td height="36"><img src="img/1x1_clear.gif" alt=""/></td></tr></table>
- </xsl:template>
-
- <xsl:template name="citation">
- <script language="JavaScript">
- <xsl:choose>
- <xsl:when test="$locale = 'es_MX'">
- <xsl:text>
- var mm =
- [
- ["ene.","enero"],["feb.","febrero"],["mar.","marzo"],["abr.","abril"],
- ["mayo","mayo"],["jun.","junio"],["jul.","julio"],["ago.","agosto"],["sept.","September"],
- ["oct.","octubre"],["nov.","noviembre"],["dic.","diciembre"]
- ];
- </xsl:text>
- </xsl:when>
- <xsl:otherwise>
- <xsl:text>
- var mm =
- [
- ["Jan.","January"],["Feb.","February"],["Mar.","March"],["Apr.","April"],
- ["May","May"],["June","June"],["July","July"],["Aug.","August"],["Sept.","September"],
- ["Oct.","October"],["Nov.","November"],["Dec.","December"]
- ];
- </xsl:text>
- </xsl:otherwise>
- </xsl:choose>
- </script>
-
- <xsl:variable name="fullURL">
- ebcid:com.britannica.oec2.identifier.ArticleIdentifier?articleId=<xsl:value-of select="$artId"/>
- </xsl:variable>
-
- <xsl:variable name="sourceName">
- <xsl:choose>
- <xsl:when test="$lib = 'EBI'">Britannica Student Library</xsl:when>
- <xsl:when test="$lib = 'EBK'">Britannica Elementary Library</xsl:when>
- <xsl:otherwise>Encyclopædia Britannica</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="siteName">
- <xsl:value-of select="$prodName"/>
- </xsl:variable>
-
- <xsl:variable name="tableWidth">
- 100%
- </xsl:variable>
-
- <xsl:variable name="backgroundcolor">
- <xsl:choose>
- <xsl:when test="$lib = 'EBI'">#F1F6F0</xsl:when>
- <xsl:when test="$lib = 'EBK'">#F7F2F9</xsl:when>
- <xsl:otherwise>#EDF3F9</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <xsl:variable name="citationImage">
- <xsl:choose>
- <xsl:when test="$lib = 'EBI'">img/bcd06_citcap_bsl.png</xsl:when>
- <xsl:when test="$lib = 'EBK'">img/bcd06_citcap_bel.png</xsl:when>
- <xsl:otherwise>img/bcd06_citcap_eb.png</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
-
- <table>
-
- <tr><td><img src="img/dot.gif" height="28" alt=""/></td></tr>
- <tr>
- <xsl:if test="$emailable = 'false' and $printable = 'false'">
- <td><img src="img/dot.gif" width="40"/></td>
- <td><img src="img/dot.gif" width="1"/></td>
- <td><img src="img/dot.gif" width="2"/></td>
- </xsl:if>
- </tr>
- </table>
-
- <table border="0" cellspacing="0" cellpadding="0" height="13">
- <tr>
- <td>
- <!--img src="{$leftImage}" border="0" height="13"/></td>
- <td bgcolor="{$bordercolor}" width="13"></td>
- <span class="citethisArticleText"><td height="13" bgcolor="{$bordercolor}"> <a name="cite"></a>To cite this article:</td></span>
- <td bgcolor="{$bordercolor}" width="12"></td>
- <td><img src="{$rightImage}" border="0" height="13"/!-->
- <img src="{$citationImage}" border="0" height="13" alt=""/>
- </td>
- </tr>
- </table>
- <a name="cite">
- <table cellspacing="0" cellpadding="0" border="1" bordercolor="{$bordercolor}" bgcolor="{$backgroundcolor}">
- <tr><td>
- <table border="0" cellspacing="0" cellpadding="0"><tr>
- <td width="12"><img src="img/dot.gif"/></td>
- <td class="citationLink">
- <!-- TODO: parameterize the product year !!! -->
- <xsl:choose>
- <xsl:when test="$locale='es_MX'">
- <p>
- <i>Estilo Asosiación de Lenguas Modernas (MLA):</i><br/>
- <b>"<xsl:apply-templates select="//Title" mode="citation"/>."</b> <u><xsl:value-of select="$prodName"/></u>. CD-ROM. Chicago: Encyclopædia Britannica. 2006.
- </p>
- <p>
- <i>Estilo Asosiación American de Psicología (APA):</i><br/>
- <b><xsl:apply-templates select="//Title" mode="citation"/> [CD-ROM].</b> (2006). <i><xsl:value-of select="$prodName"/></i>. Chicago: Encyclopædia Britannica.
- </p>
- <p>
- <i>Estilo Britannica:</i><br/>
- <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>].
- </p>
- </xsl:when>
- <xsl:otherwise>
- <p>
- <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>.
- </p>
- <p>
- <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"/>.
- </p>
- <p>
- <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>].
- </p>
- </xsl:otherwise>
- </xsl:choose>
- </td><td width="12">
- <img src="img/dot.gif"/>
- </td></tr></table>
-
- </td></tr></table></a>
- <br/>
- <xsl:if test="$printable = 'false' and $emailable ='false'">
- <img src="img/dot.gif" width="40"/>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="Title" mode="citation">
- <xsl:apply-templates/>
- </xsl:template>
-
-
- <!--xsl:template name="articlePageHeader">
- <p/>
- <table align="center" border="0" cellpadding="2" cellspacing="0" width="{$articleTableWidth}">
- <tr>
- <td>
- <xsl:choose>
- <xsl:when test="//title">
- <xsl:choose>
- <xsl:when test="starts-with(../articleinfo/@contenttype, 'boy')">
- <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/>
- <xsl:apply-templates/><br/></span>
- </xsl:when>
-
- <xsl:when test="parent::sidebar">
- <xsl:apply-templates select="titltxt" mode="sidebar"/>
- </xsl:when>
-
- <xsl:otherwise>
- <span class="arttitle"><xsl:apply-templates select="//titltxt|//titlsub|//tabbrev|//chemsym|//taxon"/><br/></span>
- <span class="arttitle"><xsl:apply-templates select="//titlsub|//tabbrev|//chemsym|//taxon"/><br/></span>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:when>
- <xsl:otherwise>
- <span class="arttitle">
- <xsl:apply-templates select="articleTitle" mode="header"/>
- <xsl:apply-templates select="headingElements"/>
- <br/></span>
- </xsl:otherwise>
- </xsl:choose>
-
- <span class="artsubhead"><img src="/bcom/images/thistle.gif" alt=""/>
- <xsl:choose>
- <xsl:when test="$lib = 'EB'">
- <xsl:text disable-output-escaping='yes'> </xsl:text>Encyclop<xsl:text disable-output-escaping='yes'>æ</xsl:text>dia Britannica Article
- </xsl:when>
- <xsl:when test="$lib = 'EBI'">
- <xsl:text disable-output-escaping='yes'> </xsl:text>Student Encyclopedia Article
- </xsl:when>
- <xsl:when test="$lib = 'EBK'">
- <xsl:text disable-output-escaping='yes'>nbsp;</xsl:text>Britannica Elementary Encyclopedia
- </xsl:when>
- <xsl:when test="$lib = 'EBC'">
- <xsl:text disable-output-escaping='yes'> </xsl:text>Concise Encyclopedia Article
- </xsl:when>
- <xsl:when test="$lib = 'EBD'">
- <xsl:text disable-output-escaping='yes'> </xsl:text>Compton's Desk Reference
- </xsl:when>
- <xsl:otherwise/>
- </xsl:choose>
- </span>
- </td>
- <xsl:if test="$printable = 'false' and $lib != 'ebc'">
- <td class="artsubhead" align="right" valign="bottom">
- <table border="0" cellpadding="0" cellspacing="0">
- <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>
- <td height="1" bgcolor="#CCCCCC"><img src="img/dot.gif" height="1" width="1"/></td>
- <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>
- <tr><td height="3"><img src="img/dot.gif" height="3" width="1"/></td></tr>
- <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>
- <td width="1" bgcolor="#CCCCCC"><img src="img/dot.gif" height="1" width="1"/></td>
- <td width="3"><img src="img/dot.gif" height="1" width="1"/></td>
- <td class="artsubhead" height="14">Page <xsl:value-of select="/article/currentPageNumber"/> of <xsl:value-of select="/article/totalPageNumber"/> </td>
- <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>
- <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>
- </tr>
- <tr><td height="1" rowspan="2"></td>
- <td rowspan="2" colspan="2"><img src="/bcom/images/ebol04_pagebox_crnr_bl.gif" height="4" width="4" alt=""/></td>
- <td height="3"><img src="img/dot.gif" height="3" width="1"/></td>
- <td colspan="2" rowspan="2"><img src="/bcom/images/ebol04_pagebox_crnr_br.gif" height="4" width="4" alt=""/></td>
- <td height="1" rowspan="2"></td></tr>
- <tr><td height="1" bgcolor="#CCCCCC"><img src="img/dot.gif" height="1" width="1"/></td></tr>
- </table>
- </td>
- </xsl:if>
- </tr>
- </table>
-
- <table align="center" border="0" cellspacing="0" cellpadding="0" width="{$articleTableWidth}">
- <tr><td><img src="img/dot.gif" height="1" alt=""/></td></tr>
- <tr class="subblu"><td><img src="img/dot.gif" height="2" alt=""/></td></tr>
- <xsl:if test="$printable = 'false'">
- <tr><td><img width="1" height="6" src="img/dot.gif"/></td></tr>
- <tr><td>
- <a>
- <xsl:choose>
- <xsl:when test="$teaser = 'false'">
- <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>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href">
- <xsl:value-of select="$teaserURL"/>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:attribute name="ONMOUSEOVER">image1.src="/bcom/images/ebol04_art_pp_ro.gif";</xsl:attribute>
- <xsl:attribute name="ONMOUSEOUT">image1.src="/bcom/images/ebol04_art_pp.gif"</xsl:attribute>
- <img name="image1" src="/bcom/images/ebol04_art_pp.gif" border="0" alt="Print Page" height="9" width="53"/></a>
- <img src="img/dot.gif" alt="" height="1" width="2"/>
- <img src="/bcom/images/ebol04_art_grey_bullet.gif"/>
- <img src="img/dot.gif" alt="" height="1" width="2"/>
-
- <a>
- <xsl:choose>
- <xsl:when test="$teaser = 'false'">
- <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>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href">
- <xsl:value-of select="$teaserURL"/>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:attribute name="ONMOUSEOVER">image1a.src="/bcom/images/ebol04_art_pa_ro.gif";</xsl:attribute>
- <xsl:attribute name="ONMOUSEOUT">image1a.src="/bcom/images/ebol04_art_pa.gif"</xsl:attribute>
- <img name="image1a" src="/bcom/images/ebol04_art_pa.gif" height="9" width="65" alt="Print Article" border="0"/></a>
- <img src="img/dot.gif" alt="" height="1" width="2"/>
- <img src="/bcom/images/ebol04_art_grey_bullet.gif"/>
- <img src="img/dot.gif" alt="" height="1" width="2"/>
-
- <a>
- <xsl:choose>
- <xsl:when test="$teaser = 'false'">
- <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>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href">
- <xsl:value-of select="$teaserURL"/>
- </xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:attribute name="ONMOUSEOVER">image2.src="/bcom/images/ebol04_art_ea_ro.gif";</xsl:attribute>
- <xsl:attribute name="ONMOUSEOUT">image2.src="/bcom/images/ebol04_art_ea.gif"</xsl:attribute>
- <img name="image2" src="/bcom/images/ebol04_art_ea.gif" alt="E-mail Article" height="9" width="69" border="0"/></a>
- <img src="img/dot.gif" alt="" height="1" width="2"/>
- <img src="/bcom/images/ebol04_art_grey_bullet.gif"/>
- <img src="img/dot.gif" alt="" height="1" width="2"/>
-
- <a href="#cite">
- <xsl:attribute name="ONMOUSEOVER">image3.src="/bcom/images/ebol04_art_ca_ro.gif"</xsl:attribute>
- <xsl:attribute name="ONMOUSEOUT">image3.src="/bcom/images/ebol04_art_ca.gif"</xsl:attribute>
- <img name="image3" src="/bcom/images/ebol04_art_ca.gif" alt="Cite Article" height="9" width="58" border="0"/></a>
- </td></tr>
-
- <xsl:if test="$lib = 'ebc' and $teaser = 'true'">
- <tr><td>
- <img src="img/dot.gif" alt="" height="20" width="1"/>
- </td></tr>
- <tr>
- <td>
- <img src="/bcom/images/upsl2_article_concise_note.gif" width="253"/>
- </td>
- </tr>
- </xsl:if>
- </xsl:if>
- <tr><td><xsl:apply-templates select="uninvrtitl"/></td></tr>
- </table>
- <xsl:choose>
- <xsl:when test="parent::btw">
- <span class="h1">BTW...</span><br/><hr/>
- </xsl:when>
- <xsl:when test="parent::bup">
- <span class="h1">
- <xsl:choose>
- <xsl:when test="@ty='editors'">
- Editor's Note<br/><hr/>
- </xsl:when>
- <xsl:when test="@ty='authors'">
- Author's Note<br/><hr/>
- </xsl:when>
- <xsl:otherwise>
- Researchers' Note<br/><hr/>
- </xsl:otherwise>
- </xsl:choose>
- </span>
- </xsl:when>
- </xsl:choose>
- </xsl:template -->
-
-
- <xsl:template match="inline">
- <xsl:apply-templates select="asset"/>
- <xsl:if test="count(../inline) = 1"><br/></xsl:if>
- </xsl:template>
-
- <xsl:template match="asset">
- <xsl:choose>
- <xsl:when test="parent::inline">
-
- <center>
- <xsl:call-template name="regular_fullsize"/>
- </center>
-
- </xsl:when>
- <xsl:otherwise>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/>&type=I</xsl:attribute>
- <xsl:apply-templates/>
- </a>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template name="regular_thumb">
- <img class="imageborders">
- <xsl:attribute name="width"><xsl:value-of select="@thumbwdth"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="@thumbhgt"/></xsl:attribute>
- <xsl:attribute name="src"><xsl:value-of select="$thumbURL"/>?id=<xsl:value-of select="@id"/></xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="@mediatype"/><xsl:if test="../thumbcap">:<xsl:value-of select="../thumbcap"/></xsl:if></xsl:attribute>
- </img>
- </xsl:template>
-
- <xsl:template name="regular_fullsize">
- <xsl:param name="alt"/>
- <xsl:text disable-output-escaping="yes"></p></xsl:text>
- <center>
- <img>
- <xsl:attribute name="width"><xsl:value-of select="@wdth"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="@hgt"/></xsl:attribute>
- <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>
- <xsl:attribute name="src"><xsl:value-of select="$inlineImageURL"/>?binaryId=<xsl:value-of select="@id"/></xsl:attribute>
- </img>
- </center>
- <xsl:text disable-output-escaping="yes"><p class="artcopy"></xsl:text>
- </xsl:template>
-
- <xsl:template match="thumbcap[$emailable = 'true']"/>
-
- <xsl:template match="thumbcred[$emailable != 'true']">
- <span class="caption"><i><xsl:apply-templates/></i></span>
- </xsl:template>
-
- <!-- END ART AND IMG -->
-
- <!-- START MATH -->
- <!--xsl:template match="formula">
- <p class="formula"><center><xsl:apply-templates/></center></p>
- </xsl:template -->
-
- <xsl:template match="num">
- <sup><xsl:apply-templates/></sup>
- </xsl:template>
-
- <xsl:template match="den">
- <sub><xsl:apply-templates/></sub>
- </xsl:template>
-
- <xsl:template match="frac">
- <xsl:choose>
- <xsl:when test="parent::formula">
- <xsl:text> </xsl:text><xsl:apply-templates select="num"/>/<xsl:apply-templates select="den"/>
- </xsl:when>
- <xsl:otherwise>
- <span class="formula"><xsl:text> </xsl:text><xsl:apply-templates select="num"/>/<xsl:apply-templates select="den"/></span>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:template>
-
- <xsl:template match="sup|upper">
- <span class="supandsub"><sup><xsl:apply-templates/></sup></span>
- </xsl:template>
-
- <xsl:template match="sub|lower">
- <span class="supandsub"><sub><xsl:apply-templates/></sub></span>
- </xsl:template>
-
- <!-- END MATH -->
-
- <!-- start xrefs -->
-
- <xsl:template match="tbl" mode="thumb">
- <xsl:choose>
- <xsl:when test="$teaser = 'true'">
- <xsl:apply-templates select="." mode="teaser"/>
- </xsl:when>
- <xsl:when test="$printable = 'true'">
- <xsl:apply-templates select="." mode="print"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:apply-templates select="." mode="thumblink"/>
- </xsl:otherwise>
- </xsl:choose>
-
- </xsl:template>
-
- <xsl:template match="tbl" mode="teaser">
- <p>
- <a class="artcopybold">
- <xsl:attribute name="href"><xsl:value-of select="$teaserURL"/></xsl:attribute>
- <xsl:for-each select=".">
- <xsl:if test="position() = 1">
- <xsl:call-template name="table_thumb"/>
- <br/>
- </xsl:if>
- </xsl:for-each>
-
- </a>
- </p>
- </xsl:template>
-
- <xsl:template match="tbl" mode="print">
- <p>
- <xsl:for-each select=".">
- <xsl:if test="position() = 1">
- <xsl:call-template name="table_thumb"/>
- <br/>
- </xsl:if>
- </xsl:for-each>
- </p>
- </xsl:template>
-
- <xsl:template match="tbl" mode="thumblink">
- <p>
- <a class="artcopybold">
- <!--xsl:attribute name="href">javascript:openTable('<xsl:value-of select="@tocid"/>')</xsl:attribute -->
- <xsl:attribute name="href"><xsl:value-of select="$tableArticleURL"/>?tocId=<xsl:value-of select="@tocid"/></xsl:attribute>
- <xsl:for-each select=".">
- <xsl:if test="position() = 1">
- <xsl:call-template name="table_thumb"/>
- </xsl:if>
- </xsl:for-each>
- </a>
- </p>
- </xsl:template>
-
- <xsl:template name="table_thumb">
- <br><img class="imageborders">
- <xsl:attribute name="width"><xsl:value-of select="@thumbwdth"/></xsl:attribute>
- <xsl:attribute name="height"><xsl:value-of select="@thumbhgt"/></xsl:attribute>
- <xsl:attribute name="src">
- <xsl:value-of select="$thumbURL"/>?id=<xsl:value-of select="@assetid"/>
- </xsl:attribute>
- <xsl:attribute name="alt"><xsl:value-of select="."/></xsl:attribute>
- </img>
- </br>
- </xsl:template>
-
- <xsl:template match="tbl[$emailable != 'true']">
- <a>
- <xsl:choose>
- <xsl:when test="$printableArticleURL != ''">
- <xsl:attribute name="href"><xsl:value-of select="$printableArticleURL"/>?tocId=<xsl:value-of select="@tocid"/></xsl:attribute>
- </xsl:when>
- <xsl:otherwise>
- <xsl:attribute name="href"><xsl:value-of select="$tableArticleURL"/>?tocId=<xsl:value-of select="@tocid"/></xsl:attribute>
- </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- </a>
- </xsl:template>
-
- <!-- elements from % text -->
-
-
-
- <!-- start P and firstpar elements -->
-
- <xsl:template match="p[$emailable = 'true']">
- <p><xsl:apply-templates/></p>
- </xsl:template>
-
- <xsl:template match="fpartxt[$emailable = 'true']">
- <p><i><xsl:apply-templates select="//tvtype | //tvarint | //tvcnjtive | //tvcnjtion" mode="tvar"/></i><br/><xsl:apply-templates/></p>
- </xsl:template>
-
- <!-- note: for next two templates, don't generate thumbnails for inline
- images (@ty='i') -->
-
- <xsl:template match="p[$emailable != 'true']">
- <xsl:if test="descendant::asset[not(parent::inline) and @thumbwdth > 0]">
- <table align="left" width="120" cellspacing="0" cellpadding="0" border="0"><tr>
- <td width="110" valign="top"><xsl:apply-templates select="descendant::assembly" mode="thumb"/></td>
- <td width="10"/>
- </tr></table>
-
- </xsl:if>
- <p><xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="not(following-sibling::p)"><br clear="all"/></xsl:when>
- <xsl:when test="following-sibling::p[position() = 1]/descendant::asset[not(parent::inline) and @thumbwdth > 0]"><br clear="all"/></xsl:when>
- </xsl:choose>
- </p>
-
- </xsl:template>
-
-
-
- <xsl:template match="fpartxt[$emailable != 'true']">
-
- <xsl:if test="..//asset[not(parent::inline) and @thumbwdth > 0]">
- <table align="left" width="120" cellspacing="0" cellpadding="0" border="0"><tr>
- <td width="110" valign="top"><xsl:apply-templates select="..//assembly" mode="thumb"/></td>
- <td width="10"/>
- </tr></table>
- </xsl:if>
- <p>
- <!-- this is to fix bcd's bug2394.
- xhtml output method which uses by bcd converts<i></i> to<i/> which displays italics text for
- most articles. html output method which uses by site leaves the xsl output to <i></i> if it's
- empty and there is no display problem. karen
-
-
- <xsl:if test="//tvtype or //tvarint or //tvcnjtive or //tvcnjtion">
- <i><xsl:apply-templates select="//tvtype | //tvarint | //tvcnjtive | //tvcnjtion" mode="tvar"/></i><br/>
- </xsl:if>
- -->
- <xsl:apply-templates/>
- <xsl:choose>
- <xsl:when test="not(parent::node()/following-sibling::p)"><br clear="all"/></xsl:when>
- <xsl:when test="parent::node()/following-sibling::p[position() = 1]/descendant::asset[not(parent::inline) and @thumbwdth > 0]"><br clear="all"/></xsl:when>
- </xsl:choose>
- </p>
- </xsl:template>
-
- <!-- end firstpar -->
-
- <!-- end P and firstpar elements -->
-
- <xsl:template match="assembly[$emailable != 'true']">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/></xsl:attribute>
- <xsl:apply-templates select="arttext"/>
- </a>
- </xsl:template>
-
- <xsl:template match="assembly" mode="thumb">
- <p>
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$assemblyURL"/>?assemblyId=<xsl:value-of select="@id"/></xsl:attribute>
- <xsl:for-each select="asset">
- <xsl:if test="position()=1 and @thumbwdth > 0">
- <xsl:call-template name="regular_thumb"/>
- <br/>
- </xsl:if>
- </xsl:for-each>
- </a>
- <xsl:apply-templates select="thumbcap"/>
- </p>
- </xsl:template>
-
- <xsl:template match="thumbcap[$emailable != 'true']">
- <span class="caption"><xsl:apply-templates/></span>
- </xsl:template>
-
- <xsl:template match="authcr">
- <!-- surpress the author link if it's editor of EB -->
- <xsl:if test="not(@persid='4419') and @persid != ''">
-
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$authorURL"/>?id=<xsl:value-of select="@persid"/></xsl:attribute>
- <xsl:apply-templates/>
- </a>
-
- </xsl:if><br/><br/>
- </xsl:template>
-
- <xsl:template match="signature">
- <a>
- <xsl:attribute name="href"><xsl:value-of select="$authorURL"/>?id=<xsl:value-of select="@persid"/></xsl:attribute>
- <xsl:apply-templates/>
- </a>
-
- </xsl:template>
-
- <xsl:template match="bdate">
- <span class="artcopybold">
- <xsl:if test="//firstpar/pairbio and position() = 1">
- Respectively, <br/>
- </xsl:if>
- <xsl:choose>
- <xsl:when test="@ty='fl'"> flourished </xsl:when>
- <xsl:when test="@ty='bap'"> baptized </xsl:when>
- <xsl:otherwise> born </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- <br/>
- </span>
- </xsl:template>
-
-
- <xsl:template match="ddate">
- <span class="artcopybold">
- <xsl:choose>
- <xsl:when test="@ty='kill'"> killed in action </xsl:when>
- <xsl:when test="@ty='bur'"> buried </xsl:when>
- <xsl:when test="@ty='found'"> found dead </xsl:when>
- <xsl:otherwise> died </xsl:otherwise>
- </xsl:choose>
- <xsl:apply-templates/>
- <br/><br/>
- </span>
- </xsl:template>
-
- <!-- display headtitle only and only if it's print or email. otherwise, supress it due to section breadcrumb-->
- <xsl:template match="headtitle">
- <!--xsl:if test="$printFullArticle = 'true' or $emailable='true'">
- <h5><xsl:apply-templates/></h5>
- </xsl:if -->
- <h6><xsl:apply-templates/></h6>
- </xsl:template>
-
-
- <!-- first two head levels requir expanded node set for bboy -->
- <xsl:template match="h1">
- <span class="h1">
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </span>
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="h2">
- <span class="h2">
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </span>
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="h3">
- <span class="h3">
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </span>
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="h4">
- <span class="h3">
- <a>
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </span>
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="h5">
- <span class="h5">
- <a>
-
- <xsl:attribute name="name"><xsl:value-of select="@tocid"/>.toc</xsl:attribute>
- <xsl:apply-templates select="headtitle"/>
- </a>
- </span>
- <xsl:apply-templates select="*[name() != 'headtitle']"/>
- </xsl:template>
-
- <xsl:template match="uninvrtitl">
- <span class="arttitle"><xsl:apply-templates/></span>
- </xsl:template>
-
-
- </xsl:stylesheet>
-