-
Notifications
You must be signed in to change notification settings - Fork 1
/
realta-docbook-parameters.xsl
75 lines (67 loc) · 2.64 KB
/
realta-docbook-parameters.xsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:template name="user.head.content.extension">
<style>
@counter-style rightwardsdoublearrow {
system: cyclic;
symbols: "\21d2\a0\a0";
suffix: '';
prefix: '';
}
ul li[style="list-style-type: rightwardsdoublearrow"] {
list-style-position: outside;
list-style-type: "\21d2\a0\a0";
}
/*
ul li[style*="list-style-type: rightwardsdoublearrow"]:before {
content: "\21d2\a0\a0";
float: left;
}
ul li[style*="list-style-type: rightwardsdoublearrow"] {
list-style: none;
}
*/
</style>
</xsl:template>
<xsl:template name="next.itemsymbol">
<xsl:param name="itemsymbol" select="'default'"/>
<xsl:choose>
<!-- Change this list if you want to change the order of symbols -->
<xsl:when test="$itemsymbol = 'disc'">circle</xsl:when>
<xsl:when test="$itemsymbol = 'circle'">square</xsl:when>
<xsl:when test="$itemsymbol =
'rightwardsdoublearrow'">rightwardsdoublearrow</xsl:when>
<xsl:otherwise>disc</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="itemizedlist.label.markup">
<xsl:param name="itemsymbol" select="'disc'"/>
<xsl:choose>
<xsl:when test="$itemsymbol='none'"></xsl:when>
<xsl:when test="$itemsymbol='disc'">•</xsl:when>
<xsl:when test="$itemsymbol='bullet'">•</xsl:when>
<xsl:when test="$itemsymbol='endash'">–</xsl:when>
<xsl:when test="$itemsymbol='emdash'">—</xsl:when>
<xsl:when test="$itemsymbol='rightwardsdoublearrow'">⇒</xsl:when>
<!-- Some of these may work in your XSL-FO processor and fonts -->
<!--
<xsl:when test="$itemsymbol='square'">■</xsl:when>
<xsl:when test="$itemsymbol='box'">■</xsl:when>
<xsl:when test="$itemsymbol='smallblacksquare'">▪</xsl:when>
<xsl:when test="$itemsymbol='circle'">○</xsl:when>
<xsl:when test="$itemsymbol='opencircle'">○</xsl:when>
<xsl:when test="$itemsymbol='whitesquare'">□</xsl:when>
<xsl:when test="$itemsymbol='smallwhitesquare'">▫</xsl:when>
<xsl:when test="$itemsymbol='round'">●</xsl:when>
<xsl:when test="$itemsymbol='blackcircle'">●</xsl:when>
<xsl:when test="$itemsymbol='whitebullet'">◦</xsl:when>
<xsl:when test="$itemsymbol='triangle'">‣</xsl:when>
<xsl:when test="$itemsymbol='point'">›</xsl:when>
<xsl:when test="$itemsymbol='hand'"><fo:inline
font-family="Wingdings 2">A</fo:inline></xsl:when>
-->
<xsl:otherwise>•</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>