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:output method="xhtml" omit-xml-declaration="yes" indent="yes" encoding="UTF-8"/>
-
- <!-- passed in by the caller -->
- <xsl:param name="LOCATOR_ASSET_ID"/>
- <xsl:param name="GRAPH_ASSET_ID"/>
- <xsl:param name="FLAG_ASSET_ID"/>
-
- <!-- NOTE: DTD mentions xref elements, but this stylesheet does not yet support them -->
-
- <!-- Document Root -->
- <xsl:template match="/">
- <html>
- <head></head>
- <body leftmargin="0" rightmargin="0">
-
- <table cols="2" width="110" border="0">
- <tr>
- <td colspan="2">
- <table width="110" cols="2" border="0" cellpadding="0" cellspacing="0" align="left">
- <tr>
- <td width="60">
- <xsl:call-template name="LOCATOR_ASSET_ID"/>
- </td>
- <td width="50">
- <xsl:call-template name="FLAG_ASSET_ID"/>
- </td>
- </tr>
- </table>
- </td>
- </tr>
-
- <xsl:apply-templates select="//stat"/>
- </table>
-
- <xsl:apply-templates select="//ftnote"/>
- </body>
- </html>
- </xsl:template>
-
- <!-- we show the title elsewhere -->
- <xsl:template match="title"/>
-
- <xsl:template name="LOCATOR_ASSET_ID">
- <xsl:call-template name="atlasImage">
- <xsl:with-param name="id">
- <xsl:value-of select="$LOCATOR_ASSET_ID"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="GRAPH_ASSET_ID">
- <xsl:call-template name="atlasImage">
- <xsl:with-param name="id">
- <xsl:value-of select="$GRAPH_ASSET_ID"/>
- </xsl:with-param>
- </xsl:call-template>
- </xsl:template>
-
- <xsl:template name="FLAG_ASSET_ID">
- <xsl:call-template name="atlasThumb">
- <xsl:with-param name="id">
- <xsl:value-of select="$FLAG_ASSET_ID"/>
- </xsl:with-param>
- </xsl:call-template>
- </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:call-template name="profileEntry"/>
- </xsl:template>
-
- <xsl:template name="profileEntry">
- <tr>
- <td align="right" width="60"><font size="10"><b><i><xsl:apply-templates select="term"/></i></b></font></td>
- <td align="left" width="50"><font size="10"><xsl:apply-templates select="value"/></font></td>
- </tr>
- </xsl:template>
-
- <xsl:template match="ftnote">
- <p width="110">
- <font size="10"><xsl:apply-templates/></font>
- </p>
- </xsl:template>
-
- <xsl:template match="sup">
- <sup><xsl:apply-templates/></sup>
- </xsl:template>
-
- <xsl:template match="sub">
- <sub><xsl:apply-templates/></sub>
- </xsl:template>
-
- <xsl:template match="frac">
- <xsl:apply-templates select="num"/>/<xsl:apply-templates select="den"/>
- </xsl:template>
-
- <xsl:template match="num | upper">
- <sup><xsl:apply-templates/></sup>
- </xsl:template>
-
- <xsl:template match="den | lower">
- <sub><xsl:apply-templates/></sub>
- </xsl:template>
-
- <xsl:template match="e">
- <xsl:choose>
- <xsl:when test="@ty='i'"><i><xsl:apply-templates/></i></xsl:when>
- <xsl:when test="@ty='s'"><font size="-1"><xsl:apply-templates/></font></xsl:when>
- <xsl:when test="@ty='u'"><u><xsl:apply-templates/></u></xsl:when>
- <xsl:when test="@ty='bi'"><b><i><xsl:apply-templates/></i></b></xsl:when>
- </xsl:choose>
- </xsl:template>
-
- </xsl:stylesheet>
-