highlight.xsl 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?xml version='1.0'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  4. xmlns:xslthl="http://xslthl.sf.net"
  5. exclude-result-prefixes="xslthl"
  6. version='1.0'>
  7. <!-- ********************************************************************
  8. $Id$
  9. ********************************************************************
  10. This file is part of the XSL DocBook Stylesheet distribution.
  11. See ../README or http://docbook.sf.net/release/xsl/current/ for
  12. and other information.
  13. ******************************************************************** -->
  14. <xsl:template match='xslthl:keyword'>
  15. <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline>
  16. </xsl:template>
  17. <xsl:template match='xslthl:string'>
  18. <fo:inline font-weight="bold" font-style="italic"><xsl:apply-templates/></fo:inline>
  19. </xsl:template>
  20. <xsl:template match='xslthl:comment'>
  21. <fo:inline font-style="italic"><xsl:apply-templates/></fo:inline>
  22. </xsl:template>
  23. <xsl:template match='xslthl:tag'>
  24. <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline>
  25. </xsl:template>
  26. <xsl:template match='xslthl:attribute'>
  27. <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline>
  28. </xsl:template>
  29. <xsl:template match='xslthl:value'>
  30. <fo:inline font-weight="bold"><xsl:apply-templates/></fo:inline>
  31. </xsl:template>
  32. <!--
  33. <xsl:template match='xslthl:html'>
  34. <span style='background:#AFF'><font color='blue'><xsl:apply-templates/></font></span>
  35. </xsl:template>
  36. <xsl:template match='xslthl:xslt'>
  37. <span style='background:#AAA'><font color='blue'><xsl:apply-templates/></font></span>
  38. </xsl:template>
  39. <xsl:template match='xslthl:section'>
  40. <span style='background:yellow'><xsl:apply-templates/></span>
  41. </xsl:template>
  42. -->
  43. </xsl:stylesheet>