2 <!DOCTYPE xsl:stylesheet [
<!ENTITY % xsldoc.ent SYSTEM
"./xsldoc.ent"> %xsldoc.ent; ]
>
3 <!--#############################################################################
4 | $Id: component.mod.xsl,v 1.6 2004/01/03 12:17:59 j-devenish Exp $
5 |- #############################################################################
6 | $Author: j-devenish $
7 + ############################################################################## -->
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=
"component" xmlns=
"">
16 <releaseinfo role=
"meta">
17 $Id: component.mod.xsl,v
1.6 2004/
01/
03 12:
17:
59 j-devenish Exp $
24 <year>2000</year><year>2001</year><year>2002</year><year>2003</year>
25 <holder>Ramon Casellas
</holder>
28 <doc:revision rcasver=
"1.3">&rev_2003_05;</doc:revision>
31 <title>Chapter-level Components
<filename>component.mod.xsl
</filename></title>
33 <para>The file
<filename>component.mod.xsl
</filename> contains
34 XSL templates for a number of chapter-level components.
</para>
39 <xsl:template name="component.title">
40 <xsl:variable name="id">
41 <xsl:call-template name="label.id"><xsl:with-param name="object" select="."/></xsl:call-template>
43 <xsl:text> {\sc </xsl:text><xsl:apply-templates select="." mode="title.ref"/><xsl:text>}</xsl:text>
46 <xsl:template name="component.subtitle">
47 <xsl:variable name="subtitle"><xsl:apply-templates select="." mode="subtitle.content"/></xsl:variable>
48 <xsl:if test="$subtitle != ''">
49 <xsl:text> {\sc </xsl:text><xsl:copy-of select="$subtitle"/><xsl:text>}</xsl:text>
53 <xsl:template name="component.separator"/>
56 <doc:template xmlns=
"">
57 <refpurpose>Process some simply chapter-level components
</refpurpose>
60 Invokes the mapping templates and applies content templates.
68 <listitem><simpara>&mapping;</simpara></listitem>
69 <listitem><simpara><xref linkend=
"template.content-templates"/></simpara></listitem>
73 <xsl:template match=
"dedication|colophon|preface|partintro">
74 <xsl:call-template name=
"map.begin"/>
75 <xsl:call-template name=
"content-templates"/>
76 <xsl:call-template name=
"map.end"/>
80 <xsl:template match="colophon">
81 <xsl:call-template name="label.id"/>
82 <xsl:text> {\sc </xsl:text><xsl:apply-templates select="." mode="title.ref"/><xsl:text>}</xsl:text>
83 <xsl:if test="subtitle">
84 <xsl:text> {\sc </xsl:text>
85 <xsl:apply-templates select="subtitle"/>
86 <xsl:text>}</xsl:text>
88 <xsl:call-template name="content-templates"/>