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
7 <!-- ********************************************************************
\r
8 $Id: highlight.xsl 8419 2009-04-29 20:37:52Z kosek $
\r
9 ********************************************************************
\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
15 ******************************************************************** -->
\r
17 <xsl:import href="../highlighting/common.xsl"/>
\r
19 <xsl:template match='xslthl:keyword' mode="xslthl">
\r
20 <b class="hl-keyword"><xsl:apply-templates mode="xslthl"/></b>
\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
27 <xsl:template match='xslthl:comment' mode="xslthl">
\r
28 <i class="hl-comment" style="color: silver"><xsl:apply-templates mode="xslthl"/></i>
\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
35 <xsl:template match='xslthl:tag' mode="xslthl">
\r
36 <b class="hl-tag" style="color: #000096"><xsl:apply-templates mode="xslthl"/></b>
\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
43 <xsl:template match='xslthl:value' mode="xslthl">
\r
44 <span class="hl-value" style="color: #993300"><xsl:apply-templates mode="xslthl"/></span>
\r
47 <xsl:template match='xslthl:html' mode="xslthl">
\r
48 <b><i style="color: red"><xsl:apply-templates mode="xslthl"/></i></b>
\r
51 <xsl:template match='xslthl:xslt' mode="xslthl">
\r
52 <b style="color: #0066FF"><xsl:apply-templates mode="xslthl"/></b>
\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
60 <xsl:template match='xslthl:number' mode="xslthl">
\r
61 <span class="hl-number"><xsl:apply-templates mode="xslthl"/></span>
\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
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