[yelp-xsl] db2html-division: Removing old, unused code
- From: Shaun McCance <shaunm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [yelp-xsl] db2html-division: Removing old, unused code
- Date: Sun, 6 Nov 2011 23:34:50 +0000 (UTC)
commit 492b9597306160e9ca17c4bffa1e2d5de8999e24
Author: Shaun McCance <shaunm gnome org>
Date: Sun Nov 6 18:33:57 2011 -0500
db2html-division: Removing old, unused code
xslt/docbook/html/db2html-css.xsl | 19 ---
xslt/docbook/html/db2html-division.xsl | 241 +-------------------------------
2 files changed, 4 insertions(+), 256 deletions(-)
---
diff --git a/xslt/docbook/html/db2html-css.xsl b/xslt/docbook/html/db2html-css.xsl
index 4657eff..cdf7202 100644
--- a/xslt/docbook/html/db2html-css.xsl
+++ b/xslt/docbook/html/db2html-css.xsl
@@ -55,28 +55,9 @@ table.table-pgwide { width: 100%; }
td.td-colsep { border-</xsl:text><xsl:value-of select="$right"/><xsl:text>: solid 1px; }
td.td-rowsep { border-bottom: solid 1px; }
-thead { border-top: solid 2px; border-bottom: solid 2px; }
-tfoot { border-top: solid 2px; border-bottom: solid 2px; }
div.title span.label { font-weight: normal; }
-div.sidenav {
- padding: 0.5em 1em 0 1em;
- background-color: </xsl:text><xsl:value-of select="$color.background"/><xsl:text>;
- border: solid 1px </xsl:text><xsl:value-of select="$color.gray_border"/><xsl:text>;
-}
-div.sidenav div.sectionlinks {
- background-color: </xsl:text><xsl:value-of select="$color.background"/><xsl:text>;
- border: none; padding: 0; margin: 0;
-}
-div.sidenav div.sectionlinks li { margin-bottom: 0.5em; }
-div.sidenav div.sectionlinks div.sectionlinks div.sectionlinks {
- margin-top: 0;
- margin-</xsl:text><xsl:value-of select="$left"/><xsl:text>: 1em;
- margin-</xsl:text><xsl:value-of select="$right"/><xsl:text>: 0;
-}
-div.sidenav div.sectionlinks div.sectionlinks div.sectionlinks li { margin-bottom: 0; }
-
<!-- == bibliography == -->
span.bibliolabel {
color: </xsl:text><xsl:value-of select="$color.text_light"/><xsl:text>;
diff --git a/xslt/docbook/html/db2html-division.xsl b/xslt/docbook/html/db2html-division.xsl
index 005e7ab..c2ee587 100644
--- a/xslt/docbook/html/db2html-division.xsl
+++ b/xslt/docbook/html/db2html-division.xsl
@@ -31,6 +31,7 @@ REMARK: Describe this module
-->
+<!--%# html.title.mode -->
<xsl:template mode="html.title.mode" match="*">
<xsl:variable name="title">
<xsl:call-template name="db.title">
@@ -40,10 +41,12 @@ REMARK: Describe this module
<xsl:value-of select="normalize-space($title)"/>
</xsl:template>
+<!--%# html.header.mode -->
<xsl:template mode="html.header.mode" match="*">
<xsl:call-template name="db2html.linktrail"/>
</xsl:template>
+<!--%# html.body.mode -->
<xsl:template mode="html.body.mode" match="*">
<xsl:call-template name="db2html.links.next"/>
<xsl:choose>
@@ -65,6 +68,7 @@ REMARK: Describe this module
<div class="clear"/>
</xsl:template>
+<!--%# html.output.after.mode -->
<xsl:template mode="html.output.after.mode" match="*">
<xsl:param name="depth_of_chunk">
<xsl:call-template name="db.chunk.depth-of-chunk"/>
@@ -96,18 +100,6 @@ REMARK: Describe this module
</xsl:template>
-<!--FIXME
-@@==========================================================================
-db2html.sidenav
-Whether to create a navigation sidebar
-
-This boolean parameter specifies whether a full navigation tree in a sidebar.
-The navigation sidebar is inserted by *{db2html.division.sidebar}, so this
-parameter may have no effect if that template has been overridden.
--->
-<xsl:param name="FIXME.db2html.sidenav" select="true()"/>
-
-
<!--**==========================================================================
db2html.division.div
Renders the content of a division element, chunking children if necessary
@@ -505,231 +497,6 @@ REMARK: Document this template
</xsl:template>
-<!--**==========================================================================
-db2html.sidenav
-Generates a navigation sidebar
-$node: The currently-selected division element
-$template: The named template to call to create the page
-
-REMARK: Document this template
--->
-<xsl:template name="db2html.sidenav">
- <xsl:param name="node" select="."/>
- <xsl:param name="template"/>
- <div class="sidenav">
- <xsl:call-template name="db2html.autotoc">
- <xsl:with-param name="node" select="/"/>
- <xsl:with-param name="show_info" select="$db.chunk.info_chunk"/>
- <xsl:with-param name="is_info" select="$template = 'info'"/>
- <xsl:with-param name="selected" select="$node"/>
- <xsl:with-param name="divisions" select="/*"/>
- <xsl:with-param name="toc_depth" select="$db.chunk.max_depth + 1"/>
- <xsl:with-param name="titleabbrev" select="true()"/>
- </xsl:call-template>
- </div>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.division.head.extra
-FIXME
-:Stub: true
-
-REMARK: Describe this stub template.
--->
-<xsl:template name="db2html.division.head.extra"/>
-
-
-<!--**==========================================================================
-db2html.division.top
-FIXME
-$node: The division element being rendered
-$info: The info child element of ${node}
-$template: The named template to call to create the page
-$depth_of_chunk: The depth of the containing chunk in the document
-$prev_id: The id of the previous page
-$next_id: The id of the next page
-$prev_node: The element of the previous page
-$next_node: The element of the next page
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.division.top">
- <xsl:param name="node"/>
- <xsl:param name="info" select="/false"/>
- <xsl:param name="template"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_id">
- <xsl:choose>
- <xsl:when test="$depth_of_chunk = 0">
- <xsl:if test="$info and $db.chunk.info_chunk">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'previous'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="next_id">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'next'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_node" select="key('idkey', $prev_id)"/>
- <xsl:param name="next_node" select="key('idkey', $next_id)"/>
- <div class="head">
- <xsl:if test="$db2html.navbar.top">
- <xsl:call-template name="db2html.navbar">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="prev_id" select="$prev_id"/>
- <xsl:with-param name="next_id" select="$next_id"/>
- <xsl:with-param name="prev_node" select="$prev_node"/>
- <xsl:with-param name="next_node" select="$next_node"/>
- </xsl:call-template>
- </xsl:if>
- </div>
-</xsl:template>
-
-
-<!--FIXME
-**==========================================================================
-db2html.division.sidebar
-FIXME
-$node: The division element being rendered
-$info: The info child element of ${node}
-$template: The named template to call to create the page
-$depth_of_chunk: The depth of the containing chunk in the document
-$prev_id: The id of the previous page
-$next_id: The id of the next page
-$prev_node: The element of the previous page
-$next_node: The element of the next page
-
-REMARK: Describe this template
--->
-<xsl:template name="FIXME.db2html.division.sidebar">
- <xsl:param name="node"/>
- <xsl:param name="info" select="/false"/>
- <xsl:param name="template"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_id">
- <xsl:choose>
- <xsl:when test="$depth_of_chunk = 0">
- <xsl:if test="$info and $db.chunk.info_chunk">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'previous'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="next_id">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'next'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_node" select="key('idkey', $prev_id)"/>
- <xsl:param name="next_node" select="key('idkey', $next_id)"/>
- <xsl:if test="$db2html.sidenav">
- <div class="side">
- <xsl:call-template name="db2html.sidenav">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="template" select="$template"/>
- </xsl:call-template>
- </div>
- </xsl:if>
-</xsl:template>
-
-
-<!--**==========================================================================
-db2html.division.bottom
-FIXME
-$node: The division element being rendered
-$info: The info child element of ${node}
-$template: The named template to call to create the page
-$depth_of_chunk: The depth of the containing chunk in the document
-$prev_id: The id of the previous page
-$next_id: The id of the next page
-$prev_node: The element of the previous page
-$next_node: The element of the next page
-
-REMARK: Describe this template
--->
-<xsl:template name="db2html.division.bottom">
- <xsl:param name="node"/>
- <xsl:param name="info" select="/false"/>
- <xsl:param name="template"/>
- <xsl:param name="depth_of_chunk">
- <xsl:call-template name="db.chunk.depth-of-chunk">
- <xsl:with-param name="node" select="$node"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_id">
- <xsl:choose>
- <xsl:when test="$depth_of_chunk = 0">
- <xsl:if test="$info and $db.chunk.info_chunk">
- <xsl:value-of select="$db.chunk.info_basename"/>
- </xsl:if>
- </xsl:when>
- <xsl:otherwise>
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'previous'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:otherwise>
- </xsl:choose>
- </xsl:param>
- <xsl:param name="next_id">
- <xsl:call-template name="db.chunk.chunk-id.axis">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="axis" select="'next'"/>
- <xsl:with-param name="depth_in_chunk" select="0"/>
- <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
- </xsl:call-template>
- </xsl:param>
- <xsl:param name="prev_node" select="key('idkey', $prev_id)"/>
- <xsl:param name="next_node" select="key('idkey', $next_id)"/>
- <div class="foot">
- <xsl:if test="$db2html.navbar.bottom">
- <xsl:call-template name="db2html.navbar">
- <xsl:with-param name="node" select="$node"/>
- <xsl:with-param name="prev_id" select="$prev_id"/>
- <xsl:with-param name="next_id" select="$next_id"/>
- <xsl:with-param name="prev_node" select="$prev_node"/>
- <xsl:with-param name="next_node" select="$next_node"/>
- </xsl:call-template>
- </xsl:if>
- </div>
-</xsl:template>
-
-
<!-- == Matched Templates == -->
<!-- = appendix = -->
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]