home *** CD-ROM | disk | FTP | other *** search
Wrap
<?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" exclude-result-prefixes="html" version="1.0"> <xsl:output method="html" encoding="UTF-8"/> <!-- undefined special characters are underlined --> <xsl:template match="charundef"> <u><xsl:value-of select="@char"/></u> </xsl:template> <!-- some special characters must have a certain emphasis --> <xsl:template match="charemph"> <xsl:choose> <xsl:when test="@ty='i'"><i><xsl:value-of select="@char"/></i></xsl:when> <xsl:when test="@ty='s'"><font size="-1" class="smallText"><xsl:value-of select="@char"/></font></xsl:when> <xsl:when test="@ty='b'"><b><xsl:value-of select="@char"/></b></xsl:when> <xsl:when test="@ty='bi'"><b><i><xsl:value-of select="@char"/></i></b></xsl:when> </xsl:choose> </xsl:template> <!-- some special characters must be in a special font --> <xsl:template name="charfont"> <xsl:param name="font"></xsl:param> <xsl:param name="char"></xsl:param> <font face="{$font}"><xsl:value-of disable-output-escaping="yes" select="$char"/></font> </xsl:template> <xsl:template match="charfont"> <font face="{@font}"><xsl:value-of select="@char"/></font> </xsl:template> <!-- charimg tag has not been handled before. This causes some gifs not being displayed from the site. ex eu=57742. the tag is the result of entity mapping. --> <xsl:template match="charimg"> <xsl:variable name="gif"> <xsl:value-of select="@src"/> </xsl:variable> <xsl:variable name="fn"> <xsl:value-of select="concat('/bcom/gifs/',$gif)"/> </xsl:variable> <img> <xsl:attribute name="src"> <xsl:value-of select="$fn"/> </xsl:attribute> </img> </xsl:template> </xsl:stylesheet>