hi-d.xsl 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2004, 2005 IBM Corporation
  5. See the accompanying LICENSE file for applicable license.
  6. -->
  7. <xsl:stylesheet version="2.0"
  8. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  9. <!-- hi-d.ent Phrase domain: b | i | u | tt | sup | sub -->
  10. <xsl:template match="*[contains(@class,' hi-d/b ')]" name="topic.hi-d.b">
  11. <strong>
  12. <xsl:call-template name="commonattributes"/>
  13. <xsl:call-template name="setidaname"/>
  14. <xsl:apply-templates/>
  15. </strong>
  16. </xsl:template>
  17. <xsl:template match="*[contains(@class,' hi-d/i ')]" name="topic.hi-d.i">
  18. <em>
  19. <xsl:call-template name="commonattributes"/>
  20. <xsl:call-template name="setidaname"/>
  21. <xsl:apply-templates/>
  22. </em>
  23. </xsl:template>
  24. <xsl:template match="*[contains(@class,' hi-d/u ')]" name="topic.hi-d.u">
  25. <u>
  26. <xsl:call-template name="commonattributes"/>
  27. <xsl:call-template name="setidaname"/>
  28. <xsl:apply-templates/>
  29. </u>
  30. </xsl:template>
  31. <xsl:template match="*[contains(@class,' hi-d/tt ')]" name="topic.hi-d.tt">
  32. <tt>
  33. <xsl:call-template name="commonattributes"/>
  34. <xsl:call-template name="setidaname"/>
  35. <xsl:apply-templates/>
  36. </tt>
  37. </xsl:template>
  38. <xsl:template match="*[contains(@class,' hi-d/sup ')]" name="topic.hi-d.sup">
  39. <sup>
  40. <xsl:call-template name="commonattributes"/>
  41. <xsl:call-template name="setidaname"/>
  42. <xsl:apply-templates/>
  43. </sup>
  44. </xsl:template>
  45. <xsl:template match="*[contains(@class,' hi-d/sub ')]" name="topic.hi-d.sub">
  46. <sub>
  47. <xsl:call-template name="commonattributes"/>
  48. <xsl:call-template name="setidaname"/>
  49. <xsl:apply-templates/>
  50. </sub>
  51. </xsl:template>
  52. <xsl:template match="*[contains(@class,' hi-d/line-through ')]" name="topic.hi-d.line-through">
  53. <span style="text-decoration:line-through">
  54. <xsl:call-template name="commonattributes"/>
  55. <xsl:call-template name="setidaname"/>
  56. <xsl:apply-templates/>
  57. </span>
  58. </xsl:template>
  59. <xsl:template match="*[contains(@class,' hi-d/overline ')]" name="topic.hi-d.overline">
  60. <span style="text-decoration:overline">
  61. <xsl:call-template name="commonattributes"/>
  62. <xsl:call-template name="setidaname"/>
  63. <xsl:apply-templates/>
  64. </span>
  65. </xsl:template>
  66. </xsl:stylesheet>