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"
8 <!-- ********************************************************************
9 $Id: highlight.xsl 8419 2009-04-29 20:37:52Z kosek $
10 ********************************************************************
12 This file is part of the XSL DocBook Stylesheet distribution.
13 See ../README or http://docbook.sf.net/release/xsl/current/ for
14 and other information.
16 ******************************************************************** -->
18 <xsl:import href=
"../highlighting/common.xsl"/>
20 <xsl:template match='xslthl:keyword'
mode=
"xslthl">
21 <fo:inline font-weight=
"bold"><xsl:apply-templates mode=
"xslthl"/></fo:inline>
24 <xsl:template match='xslthl:string'
mode=
"xslthl">
25 <fo:inline font-weight=
"bold" font-style=
"italic"><xsl:apply-templates mode=
"xslthl"/></fo:inline>
28 <xsl:template match='xslthl:comment'
mode=
"xslthl">
29 <fo:inline font-style=
"italic"><xsl:apply-templates mode=
"xslthl"/></fo:inline>
32 <xsl:template match='xslthl:tag'
mode=
"xslthl">
33 <fo:inline font-weight=
"bold"><xsl:apply-templates mode=
"xslthl"/></fo:inline>
36 <xsl:template match='xslthl:attribute'
mode=
"xslthl">
37 <fo:inline font-weight=
"bold"><xsl:apply-templates mode=
"xslthl"/></fo:inline>
40 <xsl:template match='xslthl:value'
mode=
"xslthl">
41 <fo:inline font-weight=
"bold"><xsl:apply-templates mode=
"xslthl"/></fo:inline>
45 <xsl:template match='xslthl:html'>
46 <span style='background:#AFF'><font color='blue'><xsl:apply-templates/></font></span>
49 <xsl:template match='xslthl:xslt'>
50 <span style='background:#AAA'><font color='blue'><xsl:apply-templates/></font></span>
53 <xsl:template match='xslthl:section'>
54 <span style='background:yellow'><xsl:apply-templates/></span>
58 <xsl:template match='xslthl:number'
mode=
"xslthl">
59 <xsl:apply-templates mode=
"xslthl"/>
62 <xsl:template match='xslthl:annotation'
mode=
"xslthl">
63 <fo:inline color=
"gray"><xsl:apply-templates mode=
"xslthl"/></fo:inline>
66 <xsl:template match='xslthl:directive'
mode=
"xslthl">
67 <xsl:apply-templates mode=
"xslthl"/>
70 <!-- Not sure which element will be in final XSLTHL 2.0 -->
71 <xsl:template match='xslthl:doccomment|xslthl:doctype'
mode=
"xslthl">
72 <fo:inline font-weight=
"bold"><xsl:apply-templates mode=
"xslthl"/></fo:inline>