source: stylesheets/lfs-xsl/docbook-xsl-1.78.1/xhtml-1_1/highlight.xsl@ c158fe6

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since c158fe6 was b1a51ac1, checked in by Krejzi <krejzi@…>, 11 years ago

Import new branch

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

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