summaryrefslogtreecommitdiff
path: root/docs/docbook/xslt/db2latex/block.mod.xsl
diff options
context:
space:
mode:
authorcvs2svn Import User <samba-bugs@samba.org>2003-05-01 11:47:49 +0000
committercvs2svn Import User <samba-bugs@samba.org>2003-05-01 11:47:49 +0000
commit67ce764d69b13203d9bd73e055e22f71dfebdba6 (patch)
tree6d54dcff5cb7ebd51c63b2dde77ea52a090afe5f /docs/docbook/xslt/db2latex/block.mod.xsl
parentbac83636a5993dbcd1c0beefd628044771603523 (diff)
parent75cace04fdcb672cc6c3c3ec8403206f2b222c50 (diff)
downloadsamba-67ce764d69b13203d9bd73e055e22f71dfebdba6.tar.gz
samba-67ce764d69b13203d9bd73e055e22f71dfebdba6.tar.bz2
samba-67ce764d69b13203d9bd73e055e22f71dfebdba6.zip
This commit was manufactured by cvs2svn to create branch 'SAMBA_3_0'.(This used to be commit a1ffe2a29c0e6be54af09d6647b7f54369d75a1e)
Diffstat (limited to 'docs/docbook/xslt/db2latex/block.mod.xsl')
-rw-r--r--docs/docbook/xslt/db2latex/block.mod.xsl177
1 files changed, 177 insertions, 0 deletions
diff --git a/docs/docbook/xslt/db2latex/block.mod.xsl b/docs/docbook/xslt/db2latex/block.mod.xsl
new file mode 100644
index 0000000000..98d689989d
--- /dev/null
+++ b/docs/docbook/xslt/db2latex/block.mod.xsl
@@ -0,0 +1,177 @@
+<?xml version='1.0'?>
+<!--#############################################################################
+| $Id: block.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
+|- #############################################################################
+| $Author: ab $
+|
+| PURPOSE:
++ ############################################################################## -->
+
+<xsl:stylesheet
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
+ exclude-result-prefixes="doc" version='1.0'>
+
+
+ <!--############################################################################# -->
+ <!-- DOCUMENTATION -->
+ <doc:reference id="block" xmlns="">
+ <referenceinfo>
+ <releaseinfo role="meta">
+ $Id: block.mod.xsl,v 1.1 2003/04/30 21:39:49 ab Exp $
+ </releaseinfo>
+ <authorgroup>
+ <author><firstname>Ramon</firstname> <surname>Casellas</surname></author>
+ <author><firstname>James</firstname> <surname>Devenish</surname></author>
+ </authorgroup>
+ <copyright>
+ <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
+ <holder>Ramon Casellas</holder>
+ </copyright>
+ </referenceinfo>
+ <title>Block Objects <filename>block.mod.xsl</filename></title>
+ <partintro>
+ <section><title>Introduction</title>
+ <para>Sundry block-formatted objects.</para>
+ </section>
+ </partintro>
+ </doc:reference>
+
+
+
+ <doc:template name="block.object" xmlns="">
+ <refpurpose>
+ Generic handler for block-formatted objects.
+ </refpurpose>
+ <refdescription>
+ <para>
+ Calls <xref linkend="template.label.id"/> and then applies templates.
+ </para>
+ </refdescription>
+ </doc:template>
+
+ <xsl:template name="block.object">
+ <xsl:call-template name="label.id"/>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <doc:template match="blockquote" xmlns="">
+ <refpurpose>
+ A quotation set off from the main text (not inline).
+ </refpurpose>
+ <refdescription>
+ <para>
+ Uses the LaTeX <literal>quote</literal> environment.
+ If an attribution is present, it will be set at the end.
+ </para>
+ </refdescription>
+ </doc:template>
+
+ <xsl:template match="blockquote">
+ <xsl:text>\begin{quote}</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:apply-templates select="attribution" mode="block.attribution"/>
+ <xsl:text>\end{quote}&#10;</xsl:text>
+ </xsl:template>
+
+ <doc:template match="epigraph" xmlns="">
+ <refpurpose>
+ A short inscription that occurs at the beginning of a section, chapter, or document.
+ </refpurpose>
+ <refdescription>
+ <para>
+ Uses the LaTeX <literal>quote</literal> environment.
+ If an attribution is present, it will be set at the end.
+ </para>
+ </refdescription>
+ </doc:template>
+
+ <xsl:template match="epigraph">
+ <xsl:text>\begin{quote}</xsl:text>
+ <xsl:apply-templates/>
+ <xsl:apply-templates select="attribution" mode="block.attribution"/>
+ <xsl:text>\end{quote}&#10;</xsl:text>
+ </xsl:template>
+
+ <doc:template match="attribution" xmlns="">
+ <refpurpose>
+ This template produces no output.
+ </refpurpose>
+ <refdescription>
+ <para>
+ The <sgmltag class="element">attribution</sgmltag> element only occurs within
+ <xref linkend="template.blockquote"/> and <xref linkend="template.epigraph"/>.
+ However, the templates for those elements use a <quote>mode</quote> mechanism.
+ Therefore, this template is intentionally suppressed and a replacement exists.
+ See <xref linkend="template.attribution-block.attribution"/> instead.
+ </para>
+ </refdescription>
+ </doc:template>
+
+ <xsl:template match="attribution"/>
+
+ <doc:template match="attribution" mode="block.attribution" xmlns="">
+ <refpurpose>
+ The source of a block quote or epigraph.
+ </refpurpose>
+ <refdescription>
+ <para>
+ Starts a new line with right-aligned text preceded by an em dash.
+ </para>
+ </refdescription>
+ </doc:template>
+
+ <xsl:template match="attribution" mode="block.attribution">
+ <xsl:text>&#10;\hspace*\fill---</xsl:text>
+ <xsl:apply-templates/>
+ </xsl:template>
+
+ <doc:template match="sidebar" xmlns="">
+ <refpurpose>
+ A block of text that is isolated from the main flow.
+ </refpurpose>
+ <refdescription>
+ <para>
+ This is formatted as a plain block.
+ </para>
+ </refdescription>
+ </doc:template>
+
+ <xsl:template match="sidebar">
+ <xsl:call-template name="block.object"/>
+ </xsl:template>
+
+ <doc:template match="sidebar/title|blockquote/title" xmlns="">
+ <refpurpose>
+ Title lines for sundry block elements.
+ </refpurpose>
+ <refdescription>
+ <para>
+ This is formatted as a line on its own.
+ </para>
+ </refdescription>
+ </doc:template>
+
+ <xsl:template match="sidebar/title|blockquote/title">
+ <xsl:apply-templates/>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+ <doc:template match="ackno" xmlns="">
+ <refpurpose>
+ Acknowledgements in an Article.
+ </refpurpose>
+ <refdescription>
+ <para>
+ This is formatted as a plain block.
+ </para>
+ </refdescription>
+ </doc:template>
+
+ <xsl:template match="ackno">
+ <xsl:apply-templates/>
+ </xsl:template>
+
+
+</xsl:stylesheet>
+