1
<?xml version='1.0' encoding="ISO-8859-1" ?>
4
<!-- the following seems not to work with libxml -->
7
<!ENTITY nbsp "<xsl:text disable-output-escaping='yes'>&nbsp;</xsl:text>">
8
<!ENTITY space "<xsl:text> </xsl:text>">
9
<!ENTITY cr "<xsl:text>
13
<xsl:stylesheet version="1.0"
14
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
15
xmlns="http://www.w3.org/TR/xhtml1/strict">
17
<xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
19
<xsl:include href="podbase.xsl"/>
22
<!-- - - - - Header 1 - - - - -->
24
<xsl:template name="header1line">
25
<xsl:param name="txt"></xsl:param>
26
<table width="100%" border="0" cellspacing="0" cellpadding="6">
28
<td class="cPodH1"><xsl:value-of select="$txt"/></td>
34
<!-- - - - - Get number - - - - -->
36
<xsl:template match="sect1" mode="number"><xsl:number/></xsl:template>
37
<xsl:template match="sect2" mode="number"><xsl:number level="any"/></xsl:template>
40
<!-- - - - - Header Navigation - - - - -->
42
<xsl:template name="headernav">
46
<!-- - - - - Header Navigation - normal page - - - -->
49
<xsl:when test="not(pod/sect1)">
50
<xsl:variable name="nextpage">
51
<xsl:apply-templates select="following-sibling::sect1[para|verbatim|sect2][position()=1]" mode="number"/>
54
<xsl:variable name="prevpage">
55
<xsl:apply-templates select="preceding-sibling::sect1[para|verbatim|sect2][position()=1]" mode="number"/>
60
<td align="left" valign="top" width="45%">
61
<xsl:if test="$prevpage > 0">
62
<a href="{$basename}.-page-{$prevpage}-.{$extension}" class="cPodHeaderNavLink">
63
[ << Prev: <xsl:value-of select="preceding-sibling::sect1[para|verbatim|sect2][position()=1]/title"/> ]
67
<td align="center" valign="top" width="10%">
68
<a href="{$basename}.{$extension}" class="cPodHeaderNavLink">[ Content ]</a>
70
<td align="right" valign="top" width="45%">
71
<xsl:if test="following-sibling::sect1">
72
<a href="{$basename}.-page-{$nextpage}-.{$extension}" class="cPodHeaderNavLink">
73
[ Next: <xsl:value-of select="following-sibling::sect1[para|verbatim|sect2]/title"/> >> ]
82
<!-- - - - - Header Navigation - content page - - - -->
85
<xsl:variable name="nextpage">
86
<xsl:apply-templates select="/pod/sect1[para|verbatim|sect2][position()=1]" mode="number"/>
91
<a href="{$basename}.-page-{$nextpage}-.{$extension}" class="cPodHeaderNavLink">
92
[ Next: <xsl:value-of select="/pod/sect1[para|verbatim|sect2]/title"/> >> ]
102
<!-- - - - - Root - - - - -->
104
<xsl:template match="/">
106
<xsl:when test="count(/pod/sect1) = 1">
107
<xsl:apply-templates select="/pod/sect1">
108
<xsl:with-param name="shownav">0</xsl:with-param>
109
</xsl:apply-templates>
111
<xsl:when test="$page = 0">
112
<xsl:call-template name="header1line">
113
<xsl:with-param name="txt">Content - <xsl:value-of select="/pod/head/title|/pod/sect1/title"/></xsl:with-param>
115
<xsl:call-template name="headernav"/>
118
<xsl:apply-templates select="/pod/sect1" mode="toc_short"/>
122
<xsl:apply-templates select="/pod/sect1" mode="toc"/>
125
<xsl:call-template name="headernav"/>
128
<xsl:apply-templates select="/pod/sect1[position()=$page]"/>
133
<!-- - - - - table of content - short - - - - -->
135
<xsl:template match="sect1" mode="toc_short">
136
<xsl:if test="para|verbatim|sect2|list">
138
<xsl:element name="a">
139
<xsl:attribute name="href"><xsl:value-of select="$basename"/>.-page-<xsl:number/>-.<xsl:value-of select="$extension"/></xsl:attribute>
140
<xsl:attribute name="class">cPodH1ContentLink</xsl:attribute>
141
<xsl:value-of select="title"/>
147
<!-- - - - - table of content - long - - - - -->
149
<xsl:template match="sect1" mode="toc">
150
<xsl:if test="para|verbatim|sect2|list">
151
<xsl:variable name="pagehref">
152
<xsl:value-of select="$basename"/>.-page-<xsl:number/>-.<xsl:value-of select="$extension"/>
155
<li><a href="{$pagehref}" class="cPodH1ContentLink"><xsl:value-of select="title"/></a></li>
156
<xsl:if test="sect2">
158
<xsl:apply-templates select="sect2" mode="toc1">
159
<xsl:with-param name="pagehref" select="$pagehref"/>
160
</xsl:apply-templates>
166
<xsl:template match="sect2" mode="toc1">
167
<xsl:param name="pagehref"></xsl:param>
169
<xsl:element name="a">
170
<xsl:attribute name="href"><xsl:value-of select="$pagehref"/>#sect_<xsl:number level="any"/></xsl:attribute>
171
<xsl:attribute name="class">cPodH2ContentLink</xsl:attribute>
172
<xsl:value-of select="title"/>
177
<!-- ********** content - sect1 ********** -->
179
<xsl:template match="sect1">
180
<xsl:param name="shownav">1</xsl:param>
182
<xsl:call-template name="header1line">
183
<xsl:with-param name="txt" select="title"/>
186
<xsl:if test="$shownav = 1">
187
<xsl:call-template name="headernav"/>
190
<xsl:if test="para|verbatim|sect2|list">
191
<xsl:if test="sect2">
193
<xsl:apply-templates select="sect2" mode="toc1"/>
196
<xsl:apply-templates select="*[name()!='title']"/>
199
<xsl:if test="$shownav = 1">
201
<xsl:call-template name="headernav"/>
207
<!-- ********** content - sect2 ********** -->
209
<xsl:template match="sect2">
211
<xsl:element name="a">
212
<xsl:attribute name="name">sect_<xsl:number level="any"/></xsl:attribute>
213
<table width="100%" border="0" cellspacing="0" cellpadding="6">
215
<td><xsl:value-of select="title"/></td>
216
<td align="right"><a href="#top" class="cTopLink">top</a></td>
220
<xsl:apply-templates select="*[name()!='title']"/>
b'\\ No newline at end of file'