Imported Upstream version 1.79.2
[platform/upstream/docbook-xsl-stylesheets.git] / fo / highlight.xsl
1 <?xml version='1.0'?>
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"
7                 version='1.0'>
8
9 <!-- ********************************************************************
10
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.
14
15      ******************************************************************** -->
16
17 <xsl:import href="../highlighting/common.xsl"/>
18
19 <xsl:template match='xslthl:keyword' mode="xslthl">
20   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>
21 </xsl:template>
22
23 <xsl:template match='xslthl:string' mode="xslthl">
24   <fo:inline font-weight="bold" font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>
25 </xsl:template>
26
27 <xsl:template match='xslthl:comment' mode="xslthl">
28   <fo:inline font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>
29 </xsl:template>
30
31 <xsl:template match='xslthl:tag' mode="xslthl">
32   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>
33 </xsl:template>
34
35 <xsl:template match='xslthl:attribute' mode="xslthl">
36   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>
37 </xsl:template>
38
39 <xsl:template match='xslthl:value' mode="xslthl">
40   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>
41 </xsl:template>
42
43 <!--
44 <xsl:template match='xslthl:html'>
45   <span style='background:#AFF'><font color='blue'><xsl:apply-templates/></font></span>
46 </xsl:template>
47
48 <xsl:template match='xslthl:xslt'>
49   <span style='background:#AAA'><font color='blue'><xsl:apply-templates/></font></span>
50 </xsl:template>
51
52 <xsl:template match='xslthl:section'>
53   <span style='background:yellow'><xsl:apply-templates/></span>
54 </xsl:template>
55 -->
56
57 <xsl:template match='xslthl:number' mode="xslthl">
58   <xsl:apply-templates mode="xslthl"/>
59 </xsl:template>
60
61 <xsl:template match='xslthl:annotation' mode="xslthl">
62   <fo:inline color="gray"><xsl:apply-templates mode="xslthl"/></fo:inline>
63 </xsl:template>
64
65 <xsl:template match='xslthl:directive' mode="xslthl">
66   <xsl:apply-templates mode="xslthl"/>
67 </xsl:template>
68
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>
72 </xsl:template>
73
74
75 </xsl:stylesheet>
76