Moving docs tree to docs-xml to make room for generated docs in the release tarball.
[Samba.git] / docs-xml / xslt / db2latex-xsl / xsl / abstract.mod.xsl
blob995930d1b91917da8541f1da234cc0a1a7245a6b
1 <?xml version='1.0'?>
2 <!DOCTYPE xsl:stylesheet [ <!ENTITY % xsldoc.ent SYSTEM "./xsldoc.ent"> %xsldoc.ent; ]>
3 <!--#############################################################################
4 | $Id: abstract.mod.xsl,v 1.12 2003/12/30 13:38:04 j-devenish Exp $
5 |- #############################################################################
6 | $Author: j-devenish $
7 + ############################################################################## -->
9 <xsl:stylesheet
10 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
11 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
12 exclude-result-prefixes="doc" version='1.0'>
14 <doc:reference id="abstract" xmlns="">
15 <referenceinfo>
16 <releaseinfo role="meta">
17 $Id: abstract.mod.xsl,v 1.12 2003/12/30 13:38:04 j-devenish Exp $
18 </releaseinfo>
19 <authorgroup>
20 &ramon;
21 &james;
22 </authorgroup>
23 <copyright>
24 <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
25 <holder>Ramon Casellas</holder>
26 </copyright>
27 <revhistory>
28 <doc:revision rcasver="1.6">&rev_2003_05;</doc:revision>
29 </revhistory>
30 </referenceinfo>
31 <title>Abstracts <filename>abstract.mod.xsl</filename></title>
32 <partintro>
33 <para>The file <filename>abstract.mod.xsl</filename> contains the
34 XSL template for <doc:db>abstract</doc:db>.</para>
35 </partintro>
36 </doc:reference>
38 <doc:template basename="abstract" match="abstract" xmlns="">
39 <refpurpose>Process <doc:db>abstract</doc:db> elements</refpurpose>
40 <doc:description>
41 <para>
42 Uses the &latex; <function condition='env'>abstract</function> environment
43 to format <quote>abstracts</quote> as blocks.
44 </para>
45 </doc:description>
46 <doc:variables>
47 &no_var;
48 </doc:variables>
49 <doc:notes>
50 <para>Currently, the <doc:db>title</doc:db> is not honoured.</para>
51 <para>The &db2latex; template for <doc:db>abstract</doc:db> is intended for use with <doc:db>article</doc:db> and <doc:db>book</doc:db>, only.</para>
52 </doc:notes>
53 <doc:samples>
54 <simplelist type='inline'>
55 &test_article;
56 &test_book;
57 &test_ddh;
58 &test_ieeebiblio;
59 &test_varioref;
60 </simplelist>
61 </doc:samples>
62 <doc:seealso>
63 <itemizedlist>
64 <listitem><simpara>&mapping;</simpara></listitem>
65 </itemizedlist>
66 </doc:seealso>
67 </doc:template>
68 <xsl:template match="abstract">
69 <xsl:variable name="keyword">
70 <xsl:value-of select="local-name(.)"/>
71 <xsl:if test="title">
72 <!-- choose a different mapping -->
73 <xsl:text>-title</xsl:text>
74 </xsl:if>
75 </xsl:variable>
76 <xsl:call-template name="map.begin">
77 <xsl:with-param name="keyword" select="$keyword"/>
78 </xsl:call-template>
79 <xsl:call-template name="content-templates"/>
80 <xsl:call-template name="map.end">
81 <xsl:with-param name="keyword" select="$keyword"/>
82 </xsl:call-template>
83 </xsl:template>
85 </xsl:stylesheet>