]> git.stg.codes - stg.git/blob - doc/xslt/fo/highlight.xsl
Set output encoding to utf-8.
[stg.git] / doc / xslt / fo / highlight.xsl
1 <?xml version='1.0'?>\r
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
3                 xmlns:fo="http://www.w3.org/1999/XSL/Format"\r
4                 xmlns:xslthl="http://xslthl.sf.net"\r
5                 exclude-result-prefixes="xslthl"\r
6                 version='1.0'>\r
7 \r
8 <!-- ********************************************************************\r
9      $Id: highlight.xsl 8419 2009-04-29 20:37:52Z kosek $\r
10      ********************************************************************\r
11 \r
12      This file is part of the XSL DocBook Stylesheet distribution.\r
13      See ../README or http://docbook.sf.net/release/xsl/current/ for\r
14      and other information.\r
15 \r
16      ******************************************************************** -->\r
17 \r
18 <xsl:import href="../highlighting/common.xsl"/>\r
19 \r
20 <xsl:template match='xslthl:keyword' mode="xslthl">\r
21   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
22 </xsl:template>\r
23 \r
24 <xsl:template match='xslthl:string' mode="xslthl">\r
25   <fo:inline font-weight="bold" font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
26 </xsl:template>\r
27 \r
28 <xsl:template match='xslthl:comment' mode="xslthl">\r
29   <fo:inline font-style="italic"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
30 </xsl:template>\r
31 \r
32 <xsl:template match='xslthl:tag' mode="xslthl">\r
33   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
34 </xsl:template>\r
35 \r
36 <xsl:template match='xslthl:attribute' mode="xslthl">\r
37   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
38 </xsl:template>\r
39 \r
40 <xsl:template match='xslthl:value' mode="xslthl">\r
41   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
42 </xsl:template>\r
43 \r
44 <!--\r
45 <xsl:template match='xslthl:html'>\r
46   <span style='background:#AFF'><font color='blue'><xsl:apply-templates/></font></span>\r
47 </xsl:template>\r
48 \r
49 <xsl:template match='xslthl:xslt'>\r
50   <span style='background:#AAA'><font color='blue'><xsl:apply-templates/></font></span>\r
51 </xsl:template>\r
52 \r
53 <xsl:template match='xslthl:section'>\r
54   <span style='background:yellow'><xsl:apply-templates/></span>\r
55 </xsl:template>\r
56 -->\r
57 \r
58 <xsl:template match='xslthl:number' mode="xslthl">\r
59   <xsl:apply-templates mode="xslthl"/>\r
60 </xsl:template>\r
61 \r
62 <xsl:template match='xslthl:annotation' mode="xslthl">\r
63   <fo:inline color="gray"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
64 </xsl:template>\r
65 \r
66 <xsl:template match='xslthl:directive' mode="xslthl">\r
67   <xsl:apply-templates mode="xslthl"/>\r
68 </xsl:template>\r
69 \r
70 <!-- Not sure which element will be in final XSLTHL 2.0 -->\r
71 <xsl:template match='xslthl:doccomment|xslthl:doctype' mode="xslthl">\r
72   <fo:inline font-weight="bold"><xsl:apply-templates mode="xslthl"/></fo:inline>\r
73 </xsl:template>\r
74 \r
75 \r
76 </xsl:stylesheet>\r
77 \r