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="BaseAtlas.xsl"/>
-
- <xsl:output method="xhtml" omit-xml-declaration="yes" indent="yes" encoding="UTF-8"/>
-
-
- <xsl:variable name="thumbURL">ebcid:com.britannica.oec2.identifier.ThumbBinaryIdentifier</xsl:variable>
- <xsl:variable name="imageURL">ebcid:com.britannica.oec2.identifier.FullBinaryIdentifier</xsl:variable>
-
- <!-- Moved down to this level since header size is different per page -->
- <xsl:template name="additionalResources">
- <script type="text/javascript" src="js/atlas.js"></script>
- <link rel="StyleSheet" HREF="css/WorldData.css" TYPE="text/css"/>
- </xsl:template>
-
- <xsl:template match="/">
- <xsl:call-template name="pageTemplate">
- <xsl:with-param name="pageTitle"><xsl:value-of select="world_data/wd_title"/></xsl:with-param>
- <xsl:with-param name="pageSubheading"></xsl:with-param>
- <xsl:with-param name="pageHeading"><i>World Data: </i><xsl:value-of select="world_data/wd_title"/></xsl:with-param>
- <xsl:with-param name="pageBody"><xsl:apply-templates select="world_data"/></xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template match="world_data">
- <!-- this is the call to baseatlas head -->
-
- <table width="100%" cellpadding="0" cellspacing="10" border="0">
- <tr>
- <xsl:if test="profileAsset/asset">
- <td valign="top"><table width="80%" cellpadding="0" cellspacing="0">
- <tr><td class="subgrey"><img src="img/dot.gif" height="5" width="195"/></td></tr>
- <tr><td class="searchgrey" valign="top" align="center"><br/><xsl:apply-templates select="profileAsset" mode="thumb"/></td></tr>
- </table></td>
- </xsl:if>
- <xsl:if test="stat">
- <td valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0">
- <tr height="14"><td height="14" valign="middle" class="searchblu" colspan="4"><img src="img/bcd06_wd_arrow_blue_big.png"/><img src="img/dot.gif" width="5" height="5"/><font class="wdTitle">Profile</font></td></tr>
- <tr><td colspan="4"><img src="img/dot.gif" width="2" height="8"/></td></tr>
- <tr><td colspan="4" class="subgrey"><img src="img/dot.gif" width="2" height="1"/></td></tr>
- <xsl:for-each select="stat">
- <xsl:variable name="tdColor">
- <xsl:choose>
- <xsl:when test="(position() mod 2) = 1">#E5E5E5</xsl:when>
- <xsl:otherwise>white</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <tr><td colspan="4" bgcolor="{$tdColor}"><img src="img/dot.gif" width="2" height="3"/></td></tr>
- <tr bgcolor="{$tdColor}"><td width="5" align="left"><img src="img/dot.gif" height="5"/></td>
- <td class="wdTextBold" align="left"><xsl:apply-templates select="term" mode="display"/></td>
- <td width="10" align="left"><img src="img/dot.gif" height="5"/></td>
- <td align="left" class="wdText"><xsl:apply-templates select="value" mode="display"/></td>
- </tr>
- <tr><td colspan="4" bgcolor="{$tdColor}"><img src="img/dot.gif" width="2" height="3"/></td></tr>
- </xsl:for-each>
- <tr><td colspan="4" class="subgrey"><img src="img/dot.gif" width="2" height="1"/></td></tr>
-
- <xsl:if test="ftnote">
- <xsl:apply-templates select="ftnote" mode="summary"/>
- </xsl:if>
- <tr><td colspan="4"><img src="img/dot.gif" width="2" height="10"/></td></tr>
-
- </table></td>
- </xsl:if></tr>
- <xsl:if test="atlasFacts">
- <xsl:apply-templates/>
- </xsl:if>
- </table>
-
-
-
- </xsl:template>
-
- <xsl:template match="profileAsset" mode="thumb">
- <xsl:for-each select="asset">
- <xsl:choose>
- <xsl:when test="@type = 'locator'">
- <img><xsl:attribute name="src"><xsl:value-of select="$imageURL"/>?binaryId==<xsl:value-of select="."/></xsl:attribute></img><br/><br/>
- </xsl:when>
- <xsl:otherwise>
- <img><xsl:attribute name="src"><xsl:value-of select="$thumbURL"/>?binaryId==<xsl:value-of select="."/></xsl:attribute></img><br/><br/>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:for-each>
- </xsl:template>
-
- <xsl:template match="asset"/>
-
- <xsl:template match="wd_title" mode="display">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="wd_title"/>
-
- <xsl:template match="titltxt"/>
-
- <xsl:template match="term" mode="display">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="term"/>
-
- <xsl:template match="value" mode="display">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="value"/>
-
- <xsl:template match="atlasFacts">
- <tr><td colspan="3"><table width="100%" cellpadding="0" cellspacing="0" border="0">
-
- <xsl:for-each select="category">
- <tr><td colspan="4"><img src="img/dot.gif" width="2" height="8"/></td></tr>
- <tr height="14"><td height="14" valign="middle" class="searchblu" colspan="4"><img src="img/bcd06_wd_arrow_blue_big.png"/><img src="img/dot.gif" width="5" height="5"/><font class="wdTitle"><xsl:value-of select="@categoryName"/></font></td></tr>
- <tr><td colspan="4"><img src="img/dot.gif" width="2" height="8"/></td></tr>
- <tr><td colspan="4" class="subgrey"><img src="img/dot.gif" width="2" height="1"/></td></tr>
- <xsl:for-each select="fact">
- <xsl:variable name="tdColor">
- <xsl:choose>
- <xsl:when test="(position() mod 2) = 1">#E5E5E5</xsl:when>
- <xsl:otherwise>white</xsl:otherwise>
- </xsl:choose>
- </xsl:variable>
- <tr><td colspan="4" bgcolor="{$tdColor}"><img src="img/dot.gif" width="2" height="3"/></td></tr>
- <tr bgcolor="{$tdColor}">
- <td width="10" align="left"><img src="img/dot.gif" height="5"/></td>
- <td width="300" class="wdTextBold"><xsl:apply-templates select="displayName"/><sup><xsl:apply-templates select="footnote" mode="count" /></sup><img src="img/dot.gif" height="5"/></td>
-
- <td class="wdText" width="*" align="right"><xsl:if test="number(displayValue/@yearLow) > 0">(<xsl:value-of select="displayValue/@yearLow"/><xsl:if test="number(displayValue/@yearHigh) > 0">-<xsl:value-of select="displayValue/@yearHigh"/></xsl:if>)</xsl:if><img src="img/dot.gif" height="5"/><img src="img/dot.gif" height="5"/><img src="img/dot.gif" height="5"/></td>
- <td class="wdText" width="*" align="left">
- <xsl:choose>
- <xsl:when test="displayValue='---' or displayValue='...'">
- <xsl:value-of select="displayValue"/>
- </xsl:when>
- <xsl:otherwise>
- <xsl:value-of select="format-number(displayValue, '###,##0.0##')"/>
- </xsl:otherwise>
- </xsl:choose></td></tr>
- <tr><td colspan="4" bgcolor="{$tdColor}"><img src="img/dot.gif" width="2" height="3"/></td></tr>
-
-
- </xsl:for-each>
- <tr><td colspan="4" class="subgrey"><img src="img/dot.gif" width="2" height="1"/></td></tr>
-
- </xsl:for-each>
- <!-- display footnotes-->
- <xsl:if test="count(descendant::footnote) > 0">
- <xsl:for-each select="(descendant::fact)">
- <xsl:apply-templates select="footnote" mode="summary"/>
- </xsl:for-each>
- </xsl:if>
- <tr><td colspan="4"><img src="img/dot.gif" width="2" height="10"/></td></tr>
- </table></td></tr>
- <xsl:if test="count(descendant::category) > 0">
- <tr bgcolor="#E5E5E5"><td colspan="3" class="wdTextBold">--- None, negligible or not applicable</td></tr>
- <tr bgcolor="#E5E5E5"><td colspan="3" class="wdTextBold">... Not available</td></tr>
- </xsl:if>
- </xsl:template>
-
- <xsl:template match="footnote" mode="count">
- <xsl:text>(</xsl:text>
- <xsl:value-of select="count(preceding::footnote) + 1"/>
- <xsl:text>)</xsl:text>
- </xsl:template>
-
-
- <xsl:template match="footnote" mode="summary">
- <tr bgcolor="#FFFFFF">
- <td width="10" align="left"><img src="img/dot.gif" height="10"/></td>
- <td order="0" class="wdText" align="left" width="100%" colspan="3"><xsl:text>(</xsl:text><xsl:value-of select="count(preceding::footnote) + 1"/><xsl:text>)</xsl:text><img src="img/dot.gif" height="5"/><img src="img/dot.gif" height="5"/><xsl:value-of select="(descendant-or-self::footnote)"/></td></tr>
- </xsl:template>
-
- <xsl:template name="atlasImage">
- <xsl:param name="id"/>
- <img src="ebcid:com.britannica.oec2.identifier.FullBinaryIdentifier?binaryId={$id}"/>
- </xsl:template>
-
- <xsl:template name="atlasThumb">
- <xsl:param name="id"/>
- <img src="ebcid:com.britannica.oec2.identifier.ThumbBinaryIdentifier?binaryId={$id}"/>
- </xsl:template>
-
- <xsl:template match="stat">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="ftnote" mode="summary">
- <tr bgcolor="#FFFFFF"><td width="10" align="left"><img src="img/dot.gif" height="10"/></td>
- <td order="0" class="wdText" align="left" width="100%" colspan="3">
- <img src="img/dot.gif" height="5"/><img src="img/dot.gif" height="5"/><xsl:apply-templates/></td></tr>
- </xsl:template>
-
- <xsl:template match="ftnote" />
-
-
- <xsl:template match="sup">
- <sup><xsl:text>(</xsl:text><xsl:apply-templates/><xsl:text>)</xsl:text></sup>
- </xsl:template>
-
- <xsl:template match="sub">
- <sub><xsl:apply-templates/></sub>
- </xsl:template>
-
- <xsl:template match="frac">
- <xsl:apply-templates/>
- </xsl:template>
-
- <xsl:template match="num">
- <xsl:apply-templates/><xsl:text>/</xsl:text>
- </xsl:template>
-
- <xsl:template match="den">
- <xsl:apply-templates/>
- </xsl:template>
-
- </xsl:stylesheet>
-