home *** CD-ROM | disk | FTP | other *** search
/ Encyclopaedia Britannica …oncise Encyclopedia 2007 / bcd_concise07.iso / data / jars / CdAtlasLib.jar / WorldDataNationListCD.xsl < prev   
Encoding:
Extensible Markup Language  |  2006-06-20  |  11.4 KB  |  149 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <xsl:stylesheet
  4.        xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5.        xmlns:html="http://www.w3.org/TR/html4/loose.dtd"
  6.        xmlns:xhtml="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
  7.        exclude-result-prefixes="html xhtml"
  8.        version="1.0">
  9.  
  10.  <xsl:output method="xhtml" omit-xml-declaration="yes" indent="yes" encoding="UTF-8"/>
  11.  
  12. <xsl:variable name="nationURL">ebcid:com.britannica.atlas.contentfactory.identifiers.WorldDataIdentifier</xsl:variable>
  13. <xsl:variable name="nationListURL">ebcid:com.britannica.cd.atlas.content.identifiers.NationsHomepageIdentifier</xsl:variable>
  14.  
  15. <xsl:template match="nationList">
  16.      <body leftmargin="0" rightmargin="0">
  17.      <div class="header">
  18.      <table width="100%" cellpadding="0" cellspacing="0" border="0" bgcolor="#E5E5E5">        
  19.          <tr valign="bottom">
  20.           <td><img src="img/bcd06_wd_hdr.png" width="227" height="42"/></td>
  21.           <td valign="top" align="right">
  22.               <table border="0" cellspacing="0" cellpadding="0" width="35">
  23.                   <tr><td colspan="10"><img src="img/1x1_clear.gif" width="1" height="4"/></td></tr>
  24.                   <tr>
  25.                       <td><a href="javascript:find"><img src="img/bcd06_toolbar_find.png" onmousedown="this.src='img/bcd06_toolbar_find_dep.png'" onmouseout="this.src='img/bcd06_toolbar_find.png'" onmouseover="this.src='img/bcd06_toolbar_find_ro.png'" border="0"/></a></td>
  26.                       <td><img src="img/1x1_clear.gif" width="2"/></td>
  27.                       <td><a href="javascript:copy"><img src="img/bcd06_toolbar_copy.png" onmousedown="this.src='img/bcd06_toolbar_copy_dep.png'" onmouseout="this.src='img/bcd06_toolbar_copy.png'" onmouseover="this.src='img/bcd06_toolbar_copy_ro.png'" border="0"/></a></td>
  28.                       <td><img src="img/1x1_clear.gif" width="2"/></td>
  29.                       <td><a href="javascript:print"><img src="img/bcd06_toolbar_print.png" onmousedown="this.src='img/bcd06_toolbar_print_dep.png'" onmouseout="this.src='img/bcd06_toolbar_print.png'" onmouseover="this.src='img/bcd06_toolbar_print_ro.png'" border="0"/></a></td>
  30.                       <td><img src="img/1x1_clear.gif" width="2"/></td>
  31.                       <td><a href="javascript:save"><img src="img/bcd06_toolbar_save.png" onmousedown="this.src='img/bcd06_toolbar_save_dep.png'" onmouseout="this.src='img/bcd06_toolbar_save.png'" onmouseover="this.src='img/bcd06_toolbar_save_ro.png'" border="0"/></a></td>
  32.                       <td><img src="img/1x1_clear.gif" width="2"/></td>
  33.                       <td><a href="javascript:bookmark"><img src="img/bcd06_toolbar_atbkmrks.png" onmousedown="this.src='img/bcd06_toolbar_atbkmrks_dep.png'" onmouseout="this.src='img/bcd06_toolbar_atbkmrks.png'" onmouseover="this.src='img/bcd06_toolbar_atbkmrks_ro.png'" border="0"/></a></td>
  34.                       <td><img src="img/1x1_clear.gif" width="2"/></td>
  35.                       <td><img src="img/1x1_clear.gif" width="14"/></td>
  36.                    </tr>
  37.               </table>
  38.           </td></tr>
  39.         <!-- colored line at bottom -->
  40.         <tr bgcolor="B2B2B2"><td colspan="3"><img src="img/1x1_clear.gif" width="1"/></td></tr>
  41.      </table>
  42.      </div>
  43.      <div class="content">
  44.      <table>
  45.          <tr><td align="left" colspan="3"><img src="img/dot.gif" width="20"/><font class="wdTitleBold">The Nations Of The World</font></td></tr>
  46.          <tr><td><img src="img/dot.gif" height="10" width="1"/></td></tr>
  47.         <tr><td align="left" colspan="3"><table cellpadding="0" cellspacing="0"><tr><td><img src="img/dot.gif" width="20" height="1"/></td><td class="wdText">The information about the countries of the world that follows has been assembled and analyzed by <i>Encyclopaedia Britannica</i> editors from hundreds of private, national and international sources.</td></tr></table></td></tr>
  48.         <tr><td><img src="img/dot.gif" height="20" width="1"/></td></tr>
  49.     <tr><td width="20"><img src="img/dot.gif" height="1" width="20"/></td><td valign="top">
  50.              <table width="100%" cellpadding="0" border="0" cellspacing="0">
  51.                 <tr><td width="188" valign="top"><img src="img/dot.gif" width="20"/><img src="img/bcd06_wd_flags.png" height="284" width="168"/></td> 
  52.                  <td valign="top">
  53.                          <table width="475" cellpadding="0" cellspacing="0" border="0">
  54.                              <tr height="16" ><td height="16" class="searchblu" colspan="15"><xsl:call-template name="letter-link-bar"/></td></tr>
  55.                              <tr><td colspan="4"><img src="img/dot.gif" width="2" height="10"/><xsl:apply-templates select="letter"/></td></tr>
  56.                          </table>
  57.                     </td>
  58.                 </tr>
  59.              </table>
  60.             </td>
  61.         </tr>
  62.       </table>
  63.       </div>
  64.       </body>
  65. </xsl:template>
  66.  
  67.  <xsl:template name="letter-link-bar">
  68.      <table width="370" cellspacing="0" cellpadding="0"><tr>
  69.              <td width="8"><img src="img/bcd06_wd_arrow_blue_big.png" height="16" width="8" valign="top" align="left"/></td>
  70.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  71.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#a</xsl:attribute>A</a></td>
  72.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  73.              <td width="1"  class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#b</xsl:attribute>B</a></td>
  74.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  75.              <td width="1"  class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#c</xsl:attribute>C</a></td>
  76.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  77.              <td width="1"  class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#d</xsl:attribute>D</a></td>
  78.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  79.              <td width="1"  class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#e</xsl:attribute>E</a></td>
  80.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  81.              <td width="1"  class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#f</xsl:attribute>F</a></td>
  82.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  83.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#g</xsl:attribute>G</a></td>
  84.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  85.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#h</xsl:attribute>H</a></td>
  86.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  87.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#i</xsl:attribute>I</a></td>
  88.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  89.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#j</xsl:attribute>J</a></td>
  90.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  91.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#k</xsl:attribute>K</a></td>
  92.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  93.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#l</xsl:attribute>L</a></td>
  94.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  95.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#m</xsl:attribute>M</a></td>
  96.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  97.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#n</xsl:attribute>N</a></td>
  98.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  99.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#o</xsl:attribute>O</a></td>
  100.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  101.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#p</xsl:attribute>P</a></td>
  102.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  103.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#q</xsl:attribute>Q</a></td>
  104.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  105.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#r</xsl:attribute>R</a></td>
  106.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  107.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#s</xsl:attribute>S</a></td>
  108.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  109.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#t</xsl:attribute>T</a></td>
  110.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  111.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#u</xsl:attribute>U</a></td>
  112.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  113.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#v</xsl:attribute>V</a></td>
  114.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  115.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#w</xsl:attribute>W</a></td>
  116.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  117.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#x</xsl:attribute>X</a></td>
  118.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  119.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#y</xsl:attribute>Y</a></td>
  120.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  121.              <td width="1" class="wdTextBold"><a><xsl:attribute name="href"><xsl:value-of select="$nationListURL"/>#z</xsl:attribute>Z</a></td>
  122.              <td width="10"><img src="img/dot.gif" width="10"/></td>
  123.              </tr></table>             
  124.  </xsl:template>
  125.   
  126.  <xsl:template match="letter">    
  127.     <tr>
  128.         <td height="20" width="20" valign="middle"><a name="{@letterValue}"><xsl:call-template name="img"><xsl:with-param name="imageURL"><xsl:value-of select="concat('img/bcd06_ornglttrs_',@letterValue,'.png')"/></xsl:with-param></xsl:call-template></a></td>
  129.         <td valign="middle" colspan="5"><table cellpadding="0" cellspacing="0" border="0" background="img/bcd06_dot_rule_grey.png"><tr><td height="1"><img src="/img/dot.gif" height="1" width="500"/></td></tr></table></td></tr>
  130.     <tr><td colspan="4"><img src="img/dot.gif" width="2" height="10"/></td></tr>
  131.         <xsl:apply-templates select="nation"/>
  132.     <tr><td colspan="4"><img src="img/dot.gif" width="2" height="10"/></td></tr>                
  133.  </xsl:template>
  134.  
  135.  <xsl:template name="img">
  136.    <xsl:param name="imageURL"/>
  137.     <img src="{$imageURL}" height="20" width="20"/>
  138.  </xsl:template>
  139.        
  140.  <xsl:template match="nation">
  141.     <tr><td colspan="3" class="wdTextBold">
  142.     <img src="img/dot.gif" width="2" height="10"/><a href="ebcid:com.britannica.atlas.contentfactory.identifiers.WorldDataIdentifier?geoId={@geog_id}"><xsl:value-of select="name"/></a>
  143.     </td></tr>    
  144.  </xsl:template>
  145.  
  146. <xsl:template match="titltxt"/>
  147.  
  148. </xsl:stylesheet>
  149.