You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.2 KiB

  1. <!--
  2. LUFA Library
  3. Copyright (C) Dean Camera, 2017.
  4. dean [at] fourwalledcubicle [dot] com
  5. www.lufa-lib.org
  6. -->
  7. <!-- Docbook XML to Microsoft Help Viewer 1.0 transform file -->
  8. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  9. <xsl:import href="../Docbook/mshelp/docbook.xsl"/>
  10. <xsl:output method="xml" indent="no"/>
  11. <xsl:template match="emphasis[@role = 'keyword' or @role = 'keywordtype' or @role = 'keywordflow']">
  12. <span class="hl-keyword" style="color: #0079C1">
  13. <xsl:apply-templates/>
  14. </span>
  15. </xsl:template>
  16. <xsl:template match="emphasis[@role = 'stringliteral' or @role = 'charliteral']">
  17. <span class="hl-string" style="color: #800000">
  18. <xsl:apply-templates/>
  19. </span>
  20. </xsl:template>
  21. <xsl:template match="emphasis[@role = 'comment']">
  22. <em class="hl-comment" style="color: #008000">
  23. <xsl:apply-templates/>
  24. </em>
  25. </xsl:template>
  26. <xsl:template match="emphasis[@role = 'preprocessor']">
  27. <span class="hl-preprocessor" style="color: #A000A0">
  28. <xsl:apply-templates/>
  29. </span>
  30. </xsl:template>
  31. <xsl:template match="emphasis[@role = 'normal' and ancestor::programlisting]">
  32. <xsl:apply-templates />
  33. </xsl:template>
  34. </xsl:stylesheet>