hi-d.xsl 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. 2005 All Rights Reserved. -->
  6. <xsl:stylesheet version="2.0"
  7. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  8. <xsl:output method="text"/>
  9. <xsl:template match="*[contains(@class,' hi-d/b ')]">
  10. <xsl:call-template name="inline-em"/>
  11. </xsl:template>
  12. <xsl:template match="*[contains(@class,' hi-d/i ')]">
  13. {\i <xsl:apply-templates/>}
  14. </xsl:template>
  15. <xsl:template match="*[contains(@class,' hi-d/u ')]">
  16. {\ul <xsl:apply-templates/>}
  17. </xsl:template>
  18. <xsl:template match="*[contains(@class,' hi-d/tt ')]">
  19. {\f5 <xsl:apply-templates/>}
  20. </xsl:template>
  21. <xsl:template match="*[contains(@class,' hi-d/sup ')]">
  22. {\super <xsl:apply-templates/>}
  23. </xsl:template>
  24. <xsl:template match="*[contains(@class,' hi-d/sub ')]">
  25. {\sub <xsl:apply-templates/>}
  26. </xsl:template>
  27. <xsl:template match="*[contains(@class,' hi-d/line-through ')]">
  28. {\strike <xsl:apply-templates/>}
  29. </xsl:template>
  30. <xsl:template match="*[contains(@class,' hi-d/overline ')]">
  31. <!-- RTF does not support overline -->
  32. <xsl:apply-templates/>
  33. </xsl:template>
  34. </xsl:stylesheet>