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