]> git.evergreen-ils.org Git - working/Evergreen.git/blob - stylesheets/evergreen_docbook_files/docbook-xsl-1.75.2/html/highlight.xsl
Merge branch 'master' of github.com:rsoulliere/Evergreen-DocBook
[working/Evergreen.git] / stylesheets / evergreen_docbook_files / docbook-xsl-1.75.2 / html / highlight.xsl
1 <?xml version='1.0'?>\r
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"\r
3                 xmlns:xslthl="http://xslthl.sf.net"\r
4                 exclude-result-prefixes="xslthl"\r
5                 version='1.0'>\r
6 \r
7 <!-- ********************************************************************\r
8      $Id: highlight.xsl 8419 2009-04-29 20:37:52Z kosek $\r
9      ********************************************************************\r
10 \r
11      This file is part of the XSL DocBook Stylesheet distribution.\r
12      See ../README or http://docbook.sf.net/release/xsl/current/ for\r
13      and other information.\r
14 \r
15      ******************************************************************** -->\r
16 \r
17 <xsl:import href="../highlighting/common.xsl"/>\r
18 \r
19 <xsl:template match='xslthl:keyword' mode="xslthl">\r
20   <b class="hl-keyword"><xsl:apply-templates mode="xslthl"/></b>\r
21 </xsl:template>\r
22 \r
23 <xsl:template match='xslthl:string' mode="xslthl">\r
24   <b class="hl-string"><i style="color:red"><xsl:apply-templates mode="xslthl"/></i></b>\r
25 </xsl:template>\r
26 \r
27 <xsl:template match='xslthl:comment' mode="xslthl">\r
28   <i class="hl-comment" style="color: silver"><xsl:apply-templates mode="xslthl"/></i>\r
29 </xsl:template>\r
30 \r
31 <xsl:template match='xslthl:directive' mode="xslthl">\r
32   <span class="hl-directive" style="color: maroon"><xsl:apply-templates mode="xslthl"/></span>\r
33 </xsl:template>\r
34 \r
35 <xsl:template match='xslthl:tag' mode="xslthl">\r
36   <b class="hl-tag" style="color: #000096"><xsl:apply-templates mode="xslthl"/></b>\r
37 </xsl:template>\r
38 \r
39 <xsl:template match='xslthl:attribute' mode="xslthl">\r
40   <span class="hl-attribute" style="color: #F5844C"><xsl:apply-templates mode="xslthl"/></span>\r
41 </xsl:template>\r
42 \r
43 <xsl:template match='xslthl:value' mode="xslthl">\r
44   <span class="hl-value" style="color: #993300"><xsl:apply-templates mode="xslthl"/></span>\r
45 </xsl:template>\r
46 \r
47 <xsl:template match='xslthl:html' mode="xslthl">\r
48   <b><i style="color: red"><xsl:apply-templates mode="xslthl"/></i></b>\r
49 </xsl:template>\r
50 \r
51 <xsl:template match='xslthl:xslt' mode="xslthl">\r
52   <b style="color: #0066FF"><xsl:apply-templates mode="xslthl"/></b>\r
53 </xsl:template>\r
54 \r
55 <!-- Not emitted since XSLTHL 2.0 -->\r
56 <xsl:template match='xslthl:section' mode="xslthl">\r
57   <b><xsl:apply-templates mode="xslthl"/></b>\r
58 </xsl:template>\r
59 \r
60 <xsl:template match='xslthl:number' mode="xslthl">\r
61   <span class="hl-number"><xsl:apply-templates mode="xslthl"/></span>\r
62 </xsl:template>\r
63 \r
64 <xsl:template match='xslthl:annotation' mode="xslthl">\r
65   <i><span class="hl-annotation" style="color: gray"><xsl:apply-templates mode="xslthl"/></span></i>\r
66 </xsl:template>\r
67 \r
68 <!-- Not sure which element will be in final XSLTHL 2.0 -->\r
69 <xsl:template match='xslthl:doccomment|xslthl:doctype' mode="xslthl">\r
70   <b class="hl-tag" style="color: blue"><xsl:apply-templates mode="xslthl"/></b>\r
71 </xsl:template>\r
72 \r
73 </xsl:stylesheet>