home *** CD-ROM | disk | FTP | other *** search
/ Encyclopaedia Britannica …oncise Encyclopedia 2007 / bcd_concise07.iso / data / jars / oec2-lib.jar / xsl / cd / articleTitle.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2006-08-25  |  919 b   |  35 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="Variables.xsl"/>
  10.  
  11.   <xsl:output method="html" omit-xml-declaration="yes" encoding="UTF-8"/>
  12.  
  13.   <xsl:param name="text_mode">false</xsl:param>
  14.  
  15.   <xsl:template match="/">
  16.     <xsl:choose>
  17.     <xsl:when test="$text_mode = 'true'">
  18.       <xsl:apply-templates mode="text_mode"/>
  19.     </xsl:when>
  20.     <xsl:otherwise>
  21.       <xsl:apply-templates/>
  22.     </xsl:otherwise>
  23.     </xsl:choose>    
  24.   </xsl:template>
  25.  
  26.   <xsl:template match="charundef | charemph | charfont" mode="text_mode">
  27.     <xsl:value-of select="@char"/><xsl:apply-templates mode="text_mode"/>
  28.   </xsl:template>
  29.  
  30.   <xsl:template match="*" mode="text_mode">
  31.     <xsl:apply-templates mode="text_mode"/>
  32.   </xsl:template>
  33.  
  34. </xsl:stylesheet>
  35.