2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:d="http://docbook.org/ns/docbook"
4 xmlns:fo="http://www.w3.org/1999/XSL/Format"
5 xmlns:xslthl="http://xslthl.sf.net"
6 exclude-result-prefixes="xslthl d"
9 <!-- ********************************************************************
11 This file is part of the XSL DocBook Stylesheet distribution.
12 See ../README or http://cdn.docbook.org/release/xsl/current/ for
13 and other information.
15 ******************************************************************** -->
17 <xsl:import href="../highlighting/common.xsl"/>
19 <xsl:template match='xslthl:keyword' mode="xslthl">
20 <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>
23 <xsl:template match='xslthl:string' mode="xslthl">
24 <fo:inline font-weight="bold" font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>
27 <xsl:template match='xslthl:comment' mode="xslthl">
28 <fo:inline font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>
31 <xsl:template match='xslthl:tag' mode="xslthl">
32 <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>
35 <xsl:template match='xslthl:attribute' mode="xslthl">
36 <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>
39 <xsl:template match='xslthl:value' mode="xslthl">
40 <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>
44 <xsl:template match='xslthl:html'>
45 <span style='background:#AFF'><font color='blue'><xsl:apply-templates/></font></span>
48 <xsl:template match='xslthl:xslt'>
49 <span style='background:#AAA'><font color='blue'><xsl:apply-templates/></font></span>
52 <xsl:template match='xslthl:section'>
53 <span style='background:yellow'><xsl:apply-templates/></span>
57 <xsl:template match='xslthl:number' mode="xslthl">
58 <xsl:apply-templates mode="xslthl"/>
61 <xsl:template match='xslthl:annotation' mode="xslthl">
62 <fo:inline color="gray"><xsl:apply-templates mode="xslthl"/></fo:inline>
65 <xsl:template match='xslthl:directive' mode="xslthl">
66 <xsl:apply-templates mode="xslthl"/>
69 <!-- Not sure which element will be in final XSLTHL 2.0 -->
70 <xsl:template match='xslthl:doccomment|xslthl:doctype' mode="xslthl">
71 <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>