home *** CD-ROM | disk | FTP | other *** search
/ Encyclopaedia Britannica …oncise Encyclopedia 2007 / bcd_concise07.iso / data / jars / oec2-lib.jar / xsl / cd / shared / Section.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2006-08-25  |  1.7 KB  |  46 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.     exclude-result-prefixes="html"
  7.     version="1.0">
  8.  
  9.   <xsl:import href="ContentTags.xsl"/>
  10.   <xsl:import href="RefLinks.xsl"/>
  11.   <xsl:import href="Variables.xsl"/>
  12.   <xsl:import href="/xsl/shared/Section.xsl"/>
  13.  
  14.   <xsl:output method="html" encoding="UTF-8"/>
  15.   <xsl:variable name="librarySource"><xsl:value-of select="../@librarySource"/></xsl:variable>
  16.   
  17.      <xsl:template match="featuredContent">
  18.         <xsl:choose>
  19.             <xsl:when test="starts-with(//articleinfo/@contenttype, 'boy') or //articleinfo/@product = 'Classic'"></xsl:when>
  20.             <xsl:otherwise>
  21.                 <table cellspacing="0" cellpadding="0" border="0" align="right">
  22.                 <tr><td width="200" align="right">
  23.                      <object codetype="application/x-eb-java-class" classid="java:com.britannica.cd.gui.FeaturePanel">
  24.             <param>
  25.             <xsl:attribute name="name">tocId</xsl:attribute>
  26.             <xsl:attribute name="value"><xsl:value-of select="../@tocid"/></xsl:attribute>
  27.             </param>
  28.             <param>
  29.             <xsl:attribute name="name">articleId</xsl:attribute>
  30.             <xsl:attribute name="value"><xsl:value-of select="../@articleId"/></xsl:attribute>
  31.             </param>
  32.             <param>
  33.             <xsl:attribute name="name">librarySource</xsl:attribute>
  34.             <xsl:attribute name="value"><xsl:value-of select="$librarySource"/></xsl:attribute>
  35.             </param>
  36.             
  37.             </object>
  38.               </td></tr>
  39.             </table>
  40.             </xsl:otherwise>
  41.         </xsl:choose>
  42.     </xsl:template>
  43.     <xsl:template match="chronquote"></xsl:template>
  44.   
  45. </xsl:stylesheet>
  46.