source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/html/highlight.xsl@ 15c7d39

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 7.5 7.6 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 15c7d39 was 15c7d39, checked in by Matthew Burgess <matthew@…>, 11 years ago

Update stylesheets to docbook-xsl-1.78.1.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10355 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

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