hi-d.xsl 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. version="2.0">
  4. <xsl:template match="*[contains(@class,' hi-d/b ')]" name="topic.hi-d.b">
  5. <strong>
  6. <xsl:call-template name="commonattributes"/>
  7. <xsl:call-template name="setidaname"/>
  8. <xsl:apply-templates/>
  9. </strong>
  10. </xsl:template>
  11. <xsl:template match="*[contains(@class,' hi-d/i ')]" name="topic.hi-d.i">
  12. <emph>
  13. <xsl:call-template name="commonattributes"/>
  14. <xsl:call-template name="setidaname"/>
  15. <xsl:apply-templates/>
  16. </emph>
  17. </xsl:template>
  18. <xsl:template match="*[contains(@class,' hi-d/u ')]" name="topic.hi-d.u">
  19. <span>
  20. <xsl:call-template name="commonattributes"/>
  21. <xsl:call-template name="setidaname"/>
  22. <xsl:apply-templates/>
  23. </span>
  24. </xsl:template>
  25. <xsl:template match="*[contains(@class,' hi-d/tt ')]" name="topic.hi-d.tt">
  26. <code>
  27. <xsl:call-template name="commonattributes"/>
  28. <xsl:call-template name="setidaname"/>
  29. <xsl:apply-templates/>
  30. </code>
  31. </xsl:template>
  32. <xsl:template match="*[contains(@class,' hi-d/sup ')]" name="topic.hi-d.sup">
  33. <superscript>
  34. <xsl:call-template name="commonattributes"/>
  35. <xsl:call-template name="setidaname"/>
  36. <xsl:apply-templates/>
  37. </superscript>
  38. </xsl:template>
  39. <xsl:template match="*[contains(@class,' hi-d/sub ')]" name="topic.hi-d.sub">
  40. <subscript>
  41. <xsl:call-template name="commonattributes"/>
  42. <xsl:call-template name="setidaname"/>
  43. <xsl:apply-templates/>
  44. </subscript>
  45. </xsl:template>
  46. <xsl:template match="*[contains(@class,' hi-d/line-through ')]" name="topic.hi-d.line-through">
  47. <span style="text-decoration:line-through">
  48. <xsl:call-template name="commonattributes"/>
  49. <xsl:call-template name="setidaname"/>
  50. <xsl:apply-templates/>
  51. </span>
  52. </xsl:template>
  53. <xsl:template match="*[contains(@class,' hi-d/overline ')]" name="topic.hi-d.overline">
  54. <span style="text-decoration:overline">
  55. <xsl:call-template name="commonattributes"/>
  56. <xsl:call-template name="setidaname"/>
  57. <xsl:apply-templates/>
  58. </span>
  59. </xsl:template>
  60. </xsl:stylesheet>