Debian Codegraph @

docbook-xsl-ns/xhtml/highlight.xsl

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