hi-d.xsl 2.3 KB

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