2 <!--#############################################################################
3 | $Id: block.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
4 |- #############################################################################
8 + ############################################################################## -->
11 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
13 exclude-result-prefixes="doc" version='1.0'>
16 <!--############################################################################# -->
17 <!-- DOCUMENTATION -->
18 <doc:reference id="block" xmlns="">
20 <releaseinfo role="meta">
21 $Id: block.mod.xsl,v 1.1.2.1 2003/05/01 14:06:14 jelmer Exp $
24 <author><firstname>Ramon</firstname> <surname>Casellas</surname></author>
25 <author><firstname>James</firstname> <surname>Devenish</surname></author>
28 <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
29 <holder>Ramon Casellas</holder>
32 <title>Block Objects <filename>block.mod.xsl</filename></title>
34 <section><title>Introduction</title>
35 <para>Sundry block-formatted objects.</para>
42 <doc:template name="block.object" xmlns="">
44 Generic handler for block-formatted objects.
48 Calls <xref linkend="template.label.id"/> and then applies templates.
53 <xsl:template name="block.object">
54 <xsl:call-template name="label.id"/>
55 <xsl:apply-templates/>
58 <doc:template match="blockquote" xmlns="">
60 A quotation set off from the main text (not inline).
64 Uses the LaTeX <literal>quote</literal> environment.
65 If an attribution is present, it will be set at the end.
70 <xsl:template match="blockquote">
71 <xsl:text>\begin{quote}</xsl:text>
72 <xsl:apply-templates/>
73 <xsl:apply-templates select="attribution" mode="block.attribution"/>
74 <xsl:text>\end{quote} </xsl:text>
77 <doc:template match="epigraph" xmlns="">
79 A short inscription that occurs at the beginning of a section, chapter, or document.
83 Uses the LaTeX <literal>quote</literal> environment.
84 If an attribution is present, it will be set at the end.
89 <xsl:template match="epigraph">
90 <xsl:text>\begin{quote}</xsl:text>
91 <xsl:apply-templates/>
92 <xsl:apply-templates select="attribution" mode="block.attribution"/>
93 <xsl:text>\end{quote} </xsl:text>
96 <doc:template match="attribution" xmlns="">
98 This template produces no output.
102 The <sgmltag class="element">attribution</sgmltag> element only occurs within
103 <xref linkend="template.blockquote"/> and <xref linkend="template.epigraph"/>.
104 However, the templates for those elements use a <quote>mode</quote> mechanism.
105 Therefore, this template is intentionally suppressed and a replacement exists.
106 See <xref linkend="template.attribution-block.attribution"/> instead.
111 <xsl:template match="attribution"/>
113 <doc:template match="attribution" mode="block.attribution" xmlns="">
115 The source of a block quote or epigraph.
119 Starts a new line with right-aligned text preceded by an em dash.
124 <xsl:template match="attribution" mode="block.attribution">
125 <xsl:text> \hspace*\fill---</xsl:text>
126 <xsl:apply-templates/>
129 <doc:template match="sidebar" xmlns="">
131 A block of text that is isolated from the main flow.
135 This is formatted as a plain block.
140 <xsl:template match="sidebar">
141 <xsl:call-template name="block.object"/>
144 <doc:template match="sidebar/title|blockquote/title" xmlns="">
146 Title lines for sundry block elements.
150 This is formatted as a line on its own.
155 <xsl:template match="sidebar/title|blockquote/title">
156 <xsl:apply-templates/>
157 <xsl:text> </xsl:text>
160 <doc:template match="ackno" xmlns="">
162 Acknowledgements in an Article.
166 This is formatted as a plain block.
171 <xsl:template match="ackno">
172 <xsl:apply-templates/>