home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2011 October / maximum-cd-2011-10.iso / DiscContents / digsby_setup.exe / lib / plugins / msim / res / mini_to_html.xsl < prev    next >
Encoding:
Extensible Markup Language  |  2010-01-27  |  3.8 KB  |  86 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!DOCTYPE xsl:stylesheet  [
  3.     <!ENTITY nbsp   " ">
  4.     <!ENTITY copy   "©">
  5.     <!ENTITY reg    "®">
  6.     <!ENTITY trade  "™">
  7.     <!ENTITY mdash  "—">
  8.     <!ENTITY ldquo  "“">
  9.     <!ENTITY rdquo  "”"> 
  10.     <!ENTITY pound  "£">
  11.     <!ENTITY yen    "¥">
  12.     <!ENTITY euro   "€">
  13. ]>
  14. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  15. <xsl:output method="html" encoding="utf-8" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
  16.  
  17. <xsl:template match="/">
  18.   <xsl:apply-templates/>
  19. </xsl:template>
  20.  
  21.  
  22. <xsl:template match="f">
  23. <span>
  24.     <xsl:attribute name="style" >font-family:'<xsl:value-of select="@f"/>';font-size:<xsl:value-of select="@h"/>px;<xsl:if test="(@s = 1) or (@s = 3) or (@s = 5) or (@s = 7)">font-weight:bold;</xsl:if><xsl:if test="(@s = 2) or (@s = 3) or (@s = 6) or (@s = 7)">font-style: italic;</xsl:if><xsl:if test="(@s = 4) or (@s = 5) or (@s = 6) or (@s = 7)">text-decoration: underline;</xsl:if></xsl:attribute>
  25.     <xsl:apply-templates/>
  26. </span>
  27. </xsl:template>
  28.  
  29. <xsl:template match="c">
  30. <span>
  31.     <xsl:attribute name="style">color:<xsl:value-of select="@v"/></xsl:attribute>
  32.     <xsl:apply-templates/>
  33. </span>
  34. </xsl:template>
  35.  
  36. <xsl:template match="b">
  37. <span>
  38.     <xsl:attribute name="style">background-color:<xsl:value-of select="@v"/></xsl:attribute>
  39.     <xsl:apply-templates/>
  40. </span>
  41. </xsl:template>
  42.  
  43. <xsl:template match="a">
  44. <a>
  45.  <xsl:attribute name="href">
  46.   <xsl:value-of select="@h" />
  47.  </xsl:attribute>
  48.  <xsl:value-of select="@h" />
  49.  <xsl:apply-templates/>
  50. </a>
  51. </xsl:template>
  52.  
  53. <xsl:template match="p">
  54.  <span>
  55.   <xsl:apply-templates />
  56.  </span>
  57. </xsl:template>
  58.  
  59. <xsl:template match="i[@n='bigsmile']"> :D <xsl:apply-templates /></xsl:template>
  60. <xsl:template match="i[@n='growl']"> :E <xsl:apply-templates /></xsl:template>
  61. <xsl:template match="i[@n='mad']"> X( <xsl:apply-templates /></xsl:template>
  62. <xsl:template match="i[@n='scared']"> :O <xsl:apply-templates /></xsl:template>
  63. <xsl:template match="i[@n='tongue']"> :p <xsl:apply-templates /></xsl:template>
  64. <xsl:template match="i[@n='devil']"> }:) <xsl:apply-templates /></xsl:template>
  65. <xsl:template match="i[@n='happy']"> :) <xsl:apply-templates /></xsl:template>
  66. <xsl:template match="i[@n='messed']"> X) <xsl:apply-templates /></xsl:template>
  67. <xsl:template match="i[@n='sidefrown']"> :{ <xsl:apply-templates /></xsl:template>
  68. <xsl:template match="i[@n='upset']"> B| <xsl:apply-templates /></xsl:template>
  69. <xsl:template match="i[@n='frazzled']"> :Z <xsl:apply-templates /></xsl:template>
  70. <xsl:template match="i[@n='heart']"> :X <xsl:apply-templates /></xsl:template>
  71. <xsl:template match="i[@n='nerd']"> Q) <xsl:apply-templates /></xsl:template>
  72. <xsl:template match="i[@n='sinister']"> :B <xsl:apply-templates /></xsl:template>
  73. <xsl:template match="i[@n='wink']"> ;-) <xsl:apply-templates /></xsl:template>
  74. <xsl:template match="i[@n='geek']"> B) <xsl:apply-templates /></xsl:template>
  75. <xsl:template match="i[@n='laugh']"> :)) <xsl:apply-templates /></xsl:template>
  76. <xsl:template match="i[@n='oops']"> :G <xsl:apply-templates /></xsl:template>
  77. <xsl:template match="i[@n='smirk']"> :' <xsl:apply-templates /></xsl:template>
  78. <xsl:template match="i[@n='worried']"> :[ <xsl:apply-templates /></xsl:template>
  79. <xsl:template match="i[@n='googles']"> %) <xsl:apply-templates /></xsl:template>
  80. <xsl:template match="i[@n='mohawk']"> -: <xsl:apply-templates /></xsl:template>
  81. <xsl:template match="i[@n='pirate']">  P) <xsl:apply-templates /></xsl:template>
  82. <xsl:template match="i[@n='straight']"> :| <xsl:apply-templates /></xsl:template>
  83. <xsl:template match="i[@n='kiss']"> :x <xsl:apply-templates /></xsl:template>
  84.  
  85. </xsl:stylesheet>
  86.