step1-hi-d.xsl 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. Copyright 2004, 2006 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. >
  10. <xsl:template match="*[contains(@class,' hi-d/b ')]">
  11. <text style="bold"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  12. </xsl:template>
  13. <xsl:template match="*[contains(@class,' hi-d/i ')]">
  14. <text style="italics"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  15. </xsl:template>
  16. <!-- Note that troff only seems to allow 3 different styles: normal, bold, italics. -->
  17. <xsl:template match="*[contains(@class,' hi-d/u ')]">
  18. <text style="underlined"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  19. </xsl:template>
  20. <xsl:template match="*[contains(@class,' hi-d/tt ')]">
  21. <text style="tt"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  22. </xsl:template>
  23. <xsl:template match="*[contains(@class,' hi-d/sup ')]">
  24. <text style="sup"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  25. </xsl:template>
  26. <xsl:template match="*[contains(@class,' hi-d/sub ')]">
  27. <text style="sub"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  28. </xsl:template>
  29. </xsl:stylesheet>