2 <!--#############################################################################
3 |- #############################################################################
7 | - Nested section|simplesect > 3 mapped to subsubsection*
9 + ############################################################################## -->
12 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
13 xmlns:
doc=
"http://nwalsh.com/xsl/documentation/1.0"
14 exclude-result-prefixes=
"doc" version='
1.0'
>
18 <!--############################################################################# -->
19 <!-- DOCUMENTATION -->
20 <doc:reference id=
"sections" xmlns=
"">
22 <releaseinfo role=
"meta">
25 <author> <firstname>Ramon
</firstname> <surname>Casellas
</surname> </author>
26 <author> <firstname>James
</firstname> <surname>Devenish
</surname> </author>
29 <year>2000</year> <year>2001</year> <year>2002</year> <year>2003</year>
30 <holder>Ramon Casellas
</holder>
34 <title>Sections
<filename>sections.mod.xsl
</filename></title>
36 <section><title>Introduction
</title>
46 <xsl:template match=
"sect1|sect2|sect3|sect4|sect5">
47 <xsl:call-template name=
"map.begin"/>
48 <xsl:apply-templates/>
51 <xsl:template match=
"sect1/title"/>
52 <xsl:template match=
"sect2/title"/>
53 <xsl:template match=
"sect3/title"/>
54 <xsl:template match=
"sect4/title"/>
55 <xsl:template match=
"sect5/title"/>
58 <xsl:template match=
"section">
59 <xsl:text> </xsl:text>
60 <xsl:variable name=
"level" select=
"count(ancestor::section)+1"/>
62 <xsl:when test='$level=
1'
>
63 <xsl:call-template name=
"map.begin">
64 <xsl:with-param name=
"keyword" select=
"'sect1'"/>
67 <xsl:when test='$level=
2'
>
68 <xsl:call-template name=
"map.begin">
69 <xsl:with-param name=
"keyword" select=
"'sect2'"/>
72 <xsl:when test='$level=
3'
>
73 <xsl:call-template name=
"map.begin">
74 <xsl:with-param name=
"keyword" select=
"'sect3'"/>
77 <xsl:when test='$level=
4'
>
78 <xsl:call-template name=
"map.begin">
79 <xsl:with-param name=
"keyword" select=
"'sect4'"/>
82 <xsl:when test='$level=
5'
>
83 <xsl:call-template name=
"map.begin">
84 <xsl:with-param name=
"keyword" select=
"'sect5'"/>
88 <xsl:message>DB2LaTeX: recursive section|simplesect
> 5 Not well Supported
</xsl:message>
89 <xsl:call-template name=
"map.begin">
90 <xsl:with-param name=
"keyword" select=
"'sect6'"/>
94 <xsl:apply-templates/>
98 <xsl:template match=
"simplesect">
99 <xsl:text> </xsl:text>
100 <xsl:variable name=
"level" select=
"count(ancestor::section) + 1"/>
102 <xsl:when test='$level=
1'
>
103 <xsl:call-template name=
"map.begin">
104 <xsl:with-param name=
"keyword" select=
"'sect1'"/>
107 <xsl:when test='$level=
2'
>
108 <xsl:call-template name=
"map.begin">
109 <xsl:with-param name=
"keyword" select=
"'sect2'"/>
112 <xsl:when test='$level=
3'
>
113 <xsl:call-template name=
"map.begin">
114 <xsl:with-param name=
"keyword" select=
"'sect3'"/>
117 <xsl:when test='$level=
4'
>
118 <xsl:call-template name=
"map.begin">
119 <xsl:with-param name=
"keyword" select=
"'sect4'"/>
122 <xsl:when test='$level=
5'
>
123 <xsl:call-template name=
"map.begin">
124 <xsl:with-param name=
"keyword" select=
"'sect5'"/>
128 <xsl:message>DB2LaTeX: recursive section|simplesect
> 5 Not well Supported
</xsl:message>
129 <xsl:call-template name=
"map.begin">
130 <xsl:with-param name=
"keyword" select=
"'sect6'"/>
134 <xsl:apply-templates/>
137 <xsl:template match=
"section/title"/>
138 <xsl:template match=
"simplesect/title"/>
140 <xsl:template match=
"sectioninfo"/>
141 <xsl:template match=
"sect1info"/>
142 <xsl:template match=
"sect2info"/>
143 <xsl:template match=
"sect3info"/>
144 <xsl:template match=
"sect4info"/>
145 <xsl:template match=
"sect5info"/>