step1-hi-d.xsl 1.4 KB

12345678910111213141516171819202122232425262728293031
  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, 2006 All Rights Reserved. -->
  6. <xsl:stylesheet version="2.0"
  7. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  8. >
  9. <xsl:template match="*[contains(@class,' hi-d/b ')]">
  10. <text style="bold"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  11. </xsl:template>
  12. <xsl:template match="*[contains(@class,' hi-d/i ')]">
  13. <text style="italics"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  14. </xsl:template>
  15. <!-- Note that troff only seems to allow 3 different styles: normal, bold, italics. -->
  16. <xsl:template match="*[contains(@class,' hi-d/u ')]">
  17. <text style="underlined"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  18. </xsl:template>
  19. <xsl:template match="*[contains(@class,' hi-d/tt ')]">
  20. <text style="tt"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  21. </xsl:template>
  22. <xsl:template match="*[contains(@class,' hi-d/sup ')]">
  23. <text style="sup"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  24. </xsl:template>
  25. <xsl:template match="*[contains(@class,' hi-d/sub ')]">
  26. <text style="sub"><xsl:call-template name="commonatts"/><xsl:apply-templates/></text>
  27. </xsl:template>
  28. </xsl:stylesheet>