2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:html='http://www.w3.org/1999/xhtml'
4 xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
5 exclude-result-prefixes="html doc"
8 <xsl:import href="website-common.xsl"/>
9 <xsl:include href="toc-tabular.xsl"/>
11 <xsl:output method="html"
13 doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"
14 doctype-system="http://www.w3.org/TR/html4/loose.dtd"
17 <xsl:param name="autolayout" select="document($autolayout-file, /*)"/>
19 <!-- ==================================================================== -->
21 <!-- Netscape gets badly confused if it sees a CSS style... -->
22 <xsl:param name="admon.style" select="''"/>
23 <xsl:param name="admon.graphics" select="1"/>
24 <xsl:param name="admon.graphics.path">graphics/</xsl:param>
25 <xsl:param name="admon.graphics.extension">.gif</xsl:param>
27 <xsl:attribute-set name="table.properties">
28 <xsl:attribute name="border">0</xsl:attribute>
29 <xsl:attribute name="cellpadding">0</xsl:attribute>
30 <xsl:attribute name="cellspacing">0</xsl:attribute>
31 <xsl:attribute name="width">100%</xsl:attribute>
34 <xsl:attribute-set name="table.navigation.cell.properties">
35 <xsl:attribute name="valign">top</xsl:attribute>
36 <xsl:attribute name="align">left</xsl:attribute>
37 <!-- width is set with $navotocwidth -->
38 <xsl:attribute name="bgcolor">
40 <xsl:when test="/webpage/config[@param='navbgcolor']/@value[. != '']">
41 <xsl:value-of select="/webpage/config[@param='navbgcolor']/@value"/>
43 <xsl:when test="$autolayout/autolayout/config[@param='navbgcolor']/@value[. != '']">
44 <xsl:value-of select="$autolayout/autolayout/config[@param='navbgcolor']/@value"/>
47 <xsl:value-of select="$navbgcolor"/>
53 <xsl:attribute-set name="table.body.cell.properties">
54 <xsl:attribute name="valign">top</xsl:attribute>
55 <xsl:attribute name="align">left</xsl:attribute>
56 <!-- width is set with $navobodywidth -->
57 <xsl:attribute name="bgcolor">
58 <xsl:value-of select="$textbgcolor"/>
62 <xsl:param name="body.columns" select="2"/>
64 <!-- ==================================================================== -->
66 <xsl:template match="/">
67 <xsl:apply-templates/>
70 <xsl:template name="home.navhead">
71 <xsl:text>Navhead</xsl:text>
74 <xsl:template name="home.navhead.upperright">
75 <xsl:text>Upper-right</xsl:text>
78 <xsl:template name="home.navhead.cell">
79 <td width="50%" valign="middle" align="left">
80 <xsl:call-template name="home.navhead"/>
84 <xsl:template name="home.navhead.upperright.cell">
85 <td width="50%" valign="middle" align="right">
86 <xsl:call-template name="home.navhead.upperright"/>
90 <xsl:template name="home.navhead.separator">
94 <xsl:template match="webpage">
95 <xsl:variable name="id">
96 <xsl:call-template name="object.id"/>
99 <xsl:variable name="relpath">
100 <xsl:call-template name="root-rel-path">
101 <xsl:with-param name="webpage" select="."/>
105 <xsl:variable name="tocentry" select="$autolayout/autolayout//*[$id=@id]"/>
106 <xsl:variable name="toc" select="($tocentry/ancestor-or-self::toc
107 |$autolayout/autolayout/toc[1])[last()]"/>
110 <xsl:apply-templates select="head" mode="head.mode"/>
111 <xsl:apply-templates select="config" mode="head.mode"/>
112 <body class="tabular">
113 <xsl:call-template name="body.attributes"/>
115 <div class="{name(.)}">
118 <xsl:call-template name="allpages.banner"/>
120 <table xsl:use-attribute-sets="table.properties" border="0">
121 <xsl:if test="$nav.table.summary!=''">
122 <xsl:attribute name="summary">
123 <xsl:value-of select="normalize-space($nav.table.summary)"/>
127 <td xsl:use-attribute-sets="table.navigation.cell.properties">
128 <img src="{$relpath}{$table.spacer.image}" alt=" " width="1" height="1"/>
130 <xsl:call-template name="hspacer">
131 <xsl:with-param name="vspacer" select="1"/>
133 <td rowspan="2" xsl:use-attribute-sets="table.body.cell.properties">
134 <xsl:if test="$navbodywidth != ''">
135 <xsl:attribute name="width">
136 <xsl:value-of select="$navbodywidth"/>
140 <xsl:if test="$autolayout/autolayout/toc[1]/@id = $id">
141 <table border="0" summary="home page extra headers"
142 cellpadding="0" cellspacing="0" width="100%">
144 <xsl:call-template name="home.navhead.cell"/>
145 <xsl:call-template name="home.navhead.upperright.cell"/>
148 <xsl:call-template name="home.navhead.separator"/>
151 <xsl:if test="$autolayout/autolayout/toc[1]/@id != $id
152 or $suppress.homepage.title = 0">
153 <xsl:apply-templates select="./head/title" mode="title.mode"/>
156 <xsl:apply-templates select="child::node()[not(self::webpage)]"/>
157 <xsl:call-template name="process.footnotes"/>
162 <td xsl:use-attribute-sets="table.navigation.cell.properties">
163 <xsl:if test="$navtocwidth != ''">
164 <xsl:attribute name="width">
166 <xsl:when test="/webpage/config[@param='navtocwidth']/@value[. != '']">
167 <xsl:value-of select="/webpage/config[@param='navtocwidth']/@value"/>
169 <xsl:when test="$autolayout/autolayout/config[@param='navtocwidth']/@value[. != '']">
170 <xsl:value-of select="$autolayout/autolayout/config[@param='navtocwidth']/@value"/>
173 <xsl:value-of select="$navtocwidth"/>
179 <xsl:when test="$toc">
181 <xsl:apply-templates select="$toc">
182 <xsl:with-param name="pageid" select="@id"/>
183 </xsl:apply-templates>
186 <xsl:otherwise> </xsl:otherwise>
189 <xsl:call-template name="hspacer"/>
191 <xsl:call-template name="webpage.table.footer"/>
194 <xsl:call-template name="webpage.footer"/>
201 <xsl:template name="hspacer">
202 <xsl:param name="vspacer" select="0"/>
206 <xsl:template match="config[@param='filename']" mode="head.mode">
209 <xsl:template match="webtoc">