blob: 86f5d04b0e47ed948807ba2ed834bb4f2b5f2eea (
plain)
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
|
<?xml version='1.0'?><!-- -*- Mode: fundamental; tab-width: 3 -*- -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<!-- ======================================================================= -->
<xsl:template name="block.simple" match="
abstract | attribution | authorblurb | caption |
dedication | example | figure | formalpara |
highlights | informalexample | informalfigure | informaltable |
msg | msgentry | msgexplan | msginfo |
partintro | simplemsgentry | sidebar | table ">
<div class="{name(.)}">
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</div>
</xsl:template>
<xsl:template name="block.blockquote" match="blockquote | epigraph">
<div class="{name(.)}">
<xsl:apply-templates select="title"/>
<blockquote>
<xsl:apply-templates
select="*[name(.) != 'title' and name(.) != 'attribution']"/>
</blockquote>
<xsl:apply-templates select="attribution"/>
</div>
</xsl:template>
<xsl:template name="block.pre" match="
literallayout | programlisting | screen | synopsis">
<pre class="{name(.)}">
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</pre>
</xsl:template>
<xsl:template name="block.header" match="msgaud | msglevel | msgorig">
<div class="{name(.)}">
<xsl:call-template name="anchor"/>
<xsl:call-template name="node.heading"/>
<xsl:apply-templates/>
</div>
</xsl:template>
<!-- ======================================================================= -->
<xsl:template match="para">
<p>
<xsl:call-template name="anchor"/>
<xsl:if test="@role">
<xsl:attribute name="class">
<xsl:value-of select="@role"/>
</xsl:attribute>
</xsl:if>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="simpara">
<p>
<xsl:call-template name="anchor"/>
<xsl:apply-templates/>
</p>
</xsl:template>
<!-- ======================================================================= -->
</xsl:stylesheet>
|