hi-d2html5.xsl 947 B

12345678910111213141516171819202122
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!-- This file is part of the DITA Open Toolkit project.
  3. See the accompanying license.txt file for applicable licenses. -->
  4. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5. version="2.0">
  6. <xsl:template match="*[contains(@class,' hi-d/tt ')]" name="topic.hi-d.tt">
  7. <span style="font-family: monospace">
  8. <xsl:call-template name="commonattributes"/>
  9. <xsl:if test="*[contains(@class,' ditaot-d/ditaval-startprop ')]/@outputclass">
  10. <!-- Combine TT style with style from ditaval, if present -->
  11. <xsl:attribute name="style">
  12. <xsl:text>font-family: monospace; </xsl:text>
  13. <xsl:value-of select="*[contains(@class,' ditaot-d/ditaval-startprop ')]/@outputclass"/>
  14. </xsl:attribute>
  15. </xsl:if>
  16. <xsl:call-template name="setidaname"/>
  17. <xsl:apply-templates/>
  18. </span>
  19. </xsl:template>
  20. </xsl:stylesheet>