summaryrefslogtreecommitdiff
path: root/sandbox/paultremblay/python_interface/docs/xsl/body_elements.xsl
blob: a636c96080b0ff237147b3cfa09e36209cbd2e69 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
<xsl:stylesheet 
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:fo="http://www.w3.org/1999/XSL/Format"
    version="1.1">

    <!-- $Id$ -->

    <xsl:template match= "xsl:attribute-set[@name='paragraph-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">document/paragrah|section/paragraph"</xsl:with-param> 
        </xsl:call-template>
        <block>
            Formats the default paragraph.
        </block>
    </xsl:template>

    <xsl:template match= "xsl:attribute-set[@name='first-paragraph-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">document/paragrah|section/paragraph"</xsl:with-param> 
            <xsl:with-param name="inherits">paragraph-block</xsl:with-param> 
        </xsl:call-template>
        <block>
            Formats the first default paragraph.
        </block>
    </xsl:template>


    <xsl:template match= "xsl:attribute-set[@name='literal-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">document/literal_block|section/literal_block"</xsl:with-param> 
        </xsl:call-template>
        <block>
            Formats the literal text.
        </block>
    </xsl:template>

    <xsl:template match= "xsl:attribute-set[@name='transition-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">document/transition|section/transition"</xsl:with-param> 
        </xsl:call-template>
        <block>
            Formats the transition block. The actutal text for this block is set by the 'transition-text' 
            parameter.
        </block>
    </xsl:template>

    <xsl:template match= "xsl:attribute-set[@name='document-title-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">document/title"</xsl:with-param> 
        </xsl:call-template>
        <block>
            Formats the title for the document.
        </block>
    </xsl:template>

    <xsl:template match= "xsl:attribute-set[@name='document-subtitle-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">document/subtitle"</xsl:with-param> 
        </xsl:call-template>
        <block>
            Formats the subtitle of the document.
        </block>
    </xsl:template>


    <xsl:template match= "xsl:attribute-set[@name='document-title-page-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">document/title|document/subtitle"</xsl:with-param> 
        </xsl:call-template>
        <block>
            The block that wraps both the title and subtitle. This block only gets written
            if the title and subtitle occur in the front section, or TOC section.
        </block>
    </xsl:template>

    <xsl:template match= "xsl:attribute-set[@name='block-quote-outer-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">block_quote</xsl:with-param> 
        </xsl:call-template>
        <block>
            The attribute set that formats the block that wraps the other blocks in a block quote. Use the attribute
            set to format space after or space before, etc.
        </block>
    </xsl:template>

    <xsl:template match= "xsl:attribute-set[@name='block-quote-paragraph-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">block_quote/paragraph</xsl:with-param> 
        </xsl:call-template>
        <block>
            The attribute set that formats the paragraphs in the block quote. A different set of attributes
            controls the first paragraph (see below). Use this attribute set to set the space 
            between paragraphs with the 'space-before' attribute.
        </block>
    </xsl:template>

    <xsl:template match= "xsl:attribute-set[@name='block-quote-first-paragraph-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">block_quote/paragraph[1]</xsl:with-param> 
            <xsl:with-param name="inherits">block-quote-paragraph-block</xsl:with-param> 
        </xsl:call-template>
        <block>
            The attribute set that formats the first paragraph in the block quote.
            It inherits all the attributes from 'block-quote-first-paragraph-block' and 
            then sets the 'space-before' to 0. It does not make sense to modify 
            attributes in this attribute set directly.
        </block>
    </xsl:template>

    <xsl:template match= "xsl:attribute-set[@name='block-quote-attribution-block']" priority="3">
        <xsl:call-template name="before-desc">
            <xsl:with-param name="fo">fo:block</xsl:with-param> 
            <xsl:with-param name="docutils">block_quote/paragraph[1]</xsl:with-param> 
            <xsl:with-param name="inherits">block-quote-paragraph-block</xsl:with-param> 
        </xsl:call-template>
        <block>
            This attribute set the attribution in a block quote. 
        </block>
    </xsl:template>


</xsl:stylesheet>