[yelp-xsl] db2html: Removing titlepage-creation stuff



commit 83a2ae8d9892db9dada59860f9a9a29265428218
Author: Shaun McCance <shaunm gnome org>
Date:   Mon Nov 7 10:13:48 2011 -0500

    db2html: Removing titlepage-creation stuff

 xslt/docbook/common/db-chunk.xsl         |   25 -
 xslt/docbook/common/db-xref.xsl          |    4 -
 xslt/docbook/html/Makefile.am            |    1 -
 xslt/docbook/html/db2html-autotoc.xsl    |   46 +--
 xslt/docbook/html/db2html-division.xsl   |   71 +---
 xslt/docbook/html/db2html-info.xsl       |  736 ------------------------------
 xslt/docbook/html/db2html-suppressed.xsl |   13 -
 xslt/docbook/html/db2xhtml.xsl           |    1 -
 8 files changed, 15 insertions(+), 882 deletions(-)
---
diff --git a/xslt/docbook/common/db-chunk.xsl b/xslt/docbook/common/db-chunk.xsl
index b951021..b45599a 100644
--- a/xslt/docbook/common/db-chunk.xsl
+++ b/xslt/docbook/common/db-chunk.xsl
@@ -99,31 +99,6 @@ REMARK: Describe what this does
 
 
 <!--@@==========================================================================
-db.chunk.info_chunk
-Whether to create a chunk for the title page
-
-REMARK: Describe what this does
--->
-<xsl:param name="db.chunk.info_chunk" select="$db.chunk.max_depth != 0"/>
-
-
-<!--@@==========================================================================
-db.chunk.info_basename
-The base filename for the title page
-
-REMARK: Describe what this does
--->
-<xsl:param name="db.chunk.info_basename">
-  <xsl:choose>
-    <xsl:when test="$db.chunk.basename">
-      <xsl:value-of select="concat($db.chunk.basename, '-info')"/>
-    </xsl:when>
-    <xsl:otherwise>info</xsl:otherwise>
-  </xsl:choose>
-</xsl:param>
-
-
-<!--@@==========================================================================
 db.chunk.doctype_public
 The public DOCTYPE for output files
 
diff --git a/xslt/docbook/common/db-xref.xsl b/xslt/docbook/common/db-xref.xsl
index d26b2a4..afb823b 100644
--- a/xslt/docbook/common/db-xref.xsl
+++ b/xslt/docbook/common/db-xref.xsl
@@ -111,10 +111,6 @@ REMARK: Talk about how this works with chunking
   <xsl:param name="target" select="key('idkey', $linkend)"/>
   <xsl:param name="is_chunk" select="false()"/>
   <xsl:choose>
-    <xsl:when test="$linkend = $db.chunk.info_basename">
-      <xsl:value-of
-       select="concat($db.chunk.info_basename, $db.chunk.extension)"/>
-    </xsl:when>
     <xsl:when test="set:has-same-node($target, /*)">
       <xsl:value-of select="concat($db.chunk.basename, $db.chunk.extension)"/>
     </xsl:when>
diff --git a/xslt/docbook/html/Makefile.am b/xslt/docbook/html/Makefile.am
index e92918d..59c393f 100644
--- a/xslt/docbook/html/Makefile.am
+++ b/xslt/docbook/html/Makefile.am
@@ -13,7 +13,6 @@ xsl_DATA =				\
 	db2html-footnote.xsl		\
 	db2html-funcsynopsis.xsl	\
 	db2html-index.xsl		\
-	db2html-info.xsl		\
 	db2html-inline.xsl		\
 	db2html-l10n.xsl		\
 	db2html-media.xsl		\
diff --git a/xslt/docbook/html/db2html-autotoc.xsl b/xslt/docbook/html/db2html-autotoc.xsl
index 8610510..652cf01 100644
--- a/xslt/docbook/html/db2html-autotoc.xsl
+++ b/xslt/docbook/html/db2html-autotoc.xsl
@@ -36,8 +36,6 @@ division-level elements.
 db2html.autotoc
 Creates a table of contents for a given element
 $node: The element to create a table of contents for
-$show_info: Whether to include a link to the info page
-$is_info: Whether this contents list is for the info page
 $show_title: Whether to give the contents list a title
 $selected: A currently-selected page
 $divisions: The division-level child elements of ${node}
@@ -52,12 +50,6 @@ set to an existing element, then this template will only output ancestors
 and siblings of ancestors of the selected element.  This effectively creates
 a tree which is expanded sufficiently to show a particular element.
 
-This template accepts a number of parameters that control the style of the
-table of contents.  The ${show_info} parameter specifies whether a link to
-the info page ("About This Document") should be shown.  The ${is_info}
-parameter specifies whether the info page should be treated as the selected
-page.  If the info page is selected, it will not be displayed as a link.
-
 The ${show_title} specifies whether a title should be placed at the top of
 the table of contents.  The ${labels} parameter specifies whether to place
 section numbers as labels before each element in the list.  Finally, the
@@ -66,8 +58,6 @@ ${titleabbrev} element specifies whether list elements should use the
 -->
 <xsl:template name="db2html.autotoc">
   <xsl:param name="node" select="."/>
-  <xsl:param name="show_info" select="false()"/>
-  <xsl:param name="is_info" select="false()"/>
   <xsl:param name="show_title" select="false()"/>
   <xsl:param name="selected" select="/false"/>
   <xsl:param name="divisions"/>
@@ -87,39 +77,8 @@ ${titleabbrev} element specifies whether list elements should use the
         </div>
       </xsl:if>
       <ul>
-        <xsl:if test="$show_info">
-          <li class="links">
-            <xsl:choose>
-              <xsl:when test="$is_info">
-                <xsl:call-template name="l10n.gettext">
-                  <xsl:with-param name="msgid" select="'About This Document'"/>
-                </xsl:call-template>
-              </xsl:when>
-              <xsl:otherwise>
-                <a>
-                  <xsl:attribute name="href">
-                    <xsl:call-template name="db.xref.target">
-                      <xsl:with-param name="linkend" select="$db.chunk.info_basename"/>
-                      <xsl:with-param name="is_chunk" select="true()"/>
-                    </xsl:call-template>
-                  </xsl:attribute>
-                  <xsl:variable name="text">
-                    <xsl:call-template name="l10n.gettext">
-                      <xsl:with-param name="msgid" select="'About This Document'"/>
-                    </xsl:call-template>
-                  </xsl:variable>
-                  <xsl:attribute name="title">
-                    <xsl:value-of select="$text"/>
-                  </xsl:attribute>
-                  <xsl:value-of select="$text"/>
-                </a>
-              </xsl:otherwise>
-            </xsl:choose>
-          </li>
-        </xsl:if>
         <xsl:for-each select="$divisions">
           <xsl:apply-templates mode="db2html.autotoc.mode" select=".">
-            <xsl:with-param name="is_info" select="$is_info"/>
             <xsl:with-param name="selected" select="$selected"/>
             <xsl:with-param name="toc_depth" select="$toc_depth - 1"/>
             <xsl:with-param name="titleabbrev" select="$titleabbrev"/>
@@ -134,7 +93,6 @@ ${titleabbrev} element specifies whether list elements should use the
 <!--%%==========================================================================
 db2html.autotoc.mode
 Renders a TOC entry for an element and its children
-$is_info: Whether this contents list is for the info page
 $selected: A currently-selected page
 $toc_depth: How deep to create entries in the table of contents
 $titleabbrev: Whether to use #{titleabbrev} instead of #{title}
@@ -148,7 +106,6 @@ by one.
 For a description of the other parameters, see *{db2html.autotoc}.
 -->
 <xsl:template mode="db2html.autotoc.mode" match="*">
-  <xsl:param name="is_info" select="false()"/>
   <xsl:param name="selected" select="/false"/>
   <xsl:param name="toc_depth" select="0"/>
   <xsl:param name="titleabbrev" select="false()"/>
@@ -160,7 +117,7 @@ For a description of the other parameters, see *{db2html.autotoc}.
   </xsl:variable>
   <li class="links">
     <xsl:choose>
-      <xsl:when test="set:has-same-node(., $selected) and not($is_info)">
+      <xsl:when test="set:has-same-node(., $selected)">
         <xsl:call-template name="db.xref.content">
           <xsl:with-param name="linkend" select="@id | @xml:id"/>
           <xsl:with-param name="target" select="."/>
@@ -199,7 +156,6 @@ For a description of the other parameters, see *{db2html.autotoc}.
 
 <!-- = refentry % db2html.autotoc.mode = -->
 <xsl:template mode="db2html.autotoc.mode" match="refentry | db:refentry">
-  <xsl:param name="is_info" select="false()"/>
   <xsl:param name="selected" select="/false"/>
   <xsl:param name="toc_depth" select="0"/>
   <xsl:param name="titleabbrev" select="false()"/>
diff --git a/xslt/docbook/html/db2html-division.xsl b/xslt/docbook/html/db2html-division.xsl
index 9d276b5..9a3de17 100644
--- a/xslt/docbook/html/db2html-division.xsl
+++ b/xslt/docbook/html/db2html-division.xsl
@@ -25,7 +25,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
 
 <!--!!==========================================================================
 DocBook to HTML - Divisions
-:Requires: db-chunk db-title db-xref db2html-autotoc db2html-css db2html-footnote db2html-info db2html-xref gettext
+:Requires: db-chunk db-title db-xref db2html-autotoc db2html-css db2html-footnote db2html-xref gettext
 
 REMARK: Describe this module
 -->
@@ -54,21 +54,9 @@ REMARK: Describe this module
 <!--%# html.body.mode -->
 <xsl:template mode="html.body.mode" match="*">
   <xsl:call-template name="db2html.links.next"/>
-  <xsl:choose>
-    <xsl:when test="self::db:info or self::bookinfo or self::articleinfo">
-      <!-- FIXME
-      <xsl:call-template name="db2html.info.div">
-        <xsl:with-param name="node" select=".."/>
-        <xsl:with-param name="info" select="."/>
-      </xsl:call-template>
-      -->
-    </xsl:when>
-    <xsl:otherwise>
-      <xsl:apply-templates select=".">
-        <xsl:with-param name="depth_in_chunk" select="0"/>
-      </xsl:apply-templates>
-    </xsl:otherwise>
-  </xsl:choose>
+  <xsl:apply-templates select=".">
+    <xsl:with-param name="depth_in_chunk" select="0"/>
+  </xsl:apply-templates>
   <xsl:call-template name="db2html.links.next"/>
   <div class="clear"/>
 </xsl:template>
@@ -96,12 +84,6 @@ REMARK: Describe this module
       </xsl:call-template>
     </xsl:for-each>
   </xsl:if>
-  <xsl:if test="$db.chunk.info_chunk and $depth_of_chunk = 0 and
-                (local-name(.) = 'book' or local-name(.) = 'article')">
-    <xsl:call-template name="html.output">
-      <xsl:with-param name="node" select="bookinfo | articleinfo | db:info"/>
-    </xsl:call-template>
-  </xsl:if>
 </xsl:template>
 
 
@@ -120,7 +102,6 @@ $callback: Whether to process ${node} in %{db2html.division.div.content.mode}
 $depth_in_chunk: The depth of ${node} in the containing chunk
 $depth_of_chunk: The depth of the containing chunk in the document
 $chunk_divisions: Whether to create new documents for ${divisions}
-$chunk_info: Whether to create a new document for a title page
 $autotoc_depth: How deep to create contents listings of ${divisions}
 $lang: The locale of the text in ${node}
 $dir: The text direction, either #{ltr} or #{rtl}
@@ -153,9 +134,6 @@ REMARK: Talk about some of the parameters
   <xsl:param name="chunk_divisions"
              select="($depth_in_chunk = 0) and
                      ($depth_of_chunk &lt; $db.chunk.max_depth)"/>
-  <xsl:param name="chunk_info"
-             select="($depth_of_chunk = 0) and
-                     ($depth_in_chunk = 0 and $info)"/>
   <xsl:param name="autotoc_depth" select="number(boolean($divisions))"/>
   <xsl:param name="lang" select="$node/@lang | $node/@xml:lang"/>
   <xsl:param name="dir" select="false()"/>
@@ -415,11 +393,7 @@ REMARK: Document this 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:when test="$depth_of_chunk = 0"/>
       <xsl:otherwise>
         <xsl:call-template name="db.chunk.chunk-id.axis">
           <xsl:with-param name="node" select="$node"/>
@@ -450,30 +424,15 @@ REMARK: Document this template
             <xsl:with-param name="is_chunk" select="true()"/>
           </xsl:call-template>
         </xsl:attribute>
-        <xsl:choose>
-          <xsl:when test="$prev_id = $db.chunk.info_basename">
-            <xsl:variable name="text">
-              <xsl:call-template name="l10n.gettext">
-                <xsl:with-param name="msgid" select="'About This Document'"/>
-              </xsl:call-template>
-            </xsl:variable>
-            <xsl:attribute name="title">
-              <xsl:value-of select="$text"/>
-            </xsl:attribute>
-            <xsl:value-of select="$text"/>
-          </xsl:when>
-          <xsl:otherwise>
-            <xsl:attribute name="title">
-              <xsl:call-template name="db.xref.tooltip">
-                <xsl:with-param name="linkend" select="$prev_id"/>
-                <xsl:with-param name="target" select="$prev_node"/>
-              </xsl:call-template>
-            </xsl:attribute>
-            <xsl:call-template name="l10n.gettext">
-              <xsl:with-param name="msgid" select="'Previous'"/>
-            </xsl:call-template>
-          </xsl:otherwise>
-        </xsl:choose>
+        <xsl:attribute name="title">
+          <xsl:call-template name="db.xref.tooltip">
+            <xsl:with-param name="linkend" select="$prev_id"/>
+            <xsl:with-param name="target" select="$prev_node"/>
+          </xsl:call-template>
+        </xsl:attribute>
+        <xsl:call-template name="l10n.gettext">
+          <xsl:with-param name="msgid" select="'Previous'"/>
+        </xsl:call-template>
       </a>
     </xsl:if>
     <xsl:if test="$prev_id != '' and $next_id != ''">
@@ -920,7 +879,6 @@ the division. By default it is called by the %{html.footer.mode} implementation.
     <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
     <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
     <xsl:with-param name="chunk_divisions" select="false()"/>
-    <xsl:with-param name="chunk_info" select="false()"/>
     <xsl:with-param name="autotoc_divisions" select="false()"/>
   </xsl:call-template>
 </xsl:template>
@@ -940,7 +898,6 @@ the division. By default it is called by the %{html.footer.mode} implementation.
     <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/>
     <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/>
     <xsl:with-param name="chunk_divisions" select="false()"/>
-    <xsl:with-param name="chunk_info" select="false()"/>
     <xsl:with-param name="autotoc_divisions" select="true()"/>
   </xsl:call-template>
 </xsl:template>
diff --git a/xslt/docbook/html/db2html-suppressed.xsl b/xslt/docbook/html/db2html-suppressed.xsl
index 4965597..7b6b471 100644
--- a/xslt/docbook/html/db2html-suppressed.xsl
+++ b/xslt/docbook/html/db2html-suppressed.xsl
@@ -83,19 +83,6 @@ modes because of the DocBook content model.
 <xsl:template match="sect5info | db:sect5/db:info"/>
 <xsl:template match="sectioninfo | db:section/db:info"/>
 
-<!-- Only occur in db2html.info.mode -->
-<xsl:template match="affiliation | db:affiliation"/>
-<xsl:template match="authorblurb"/>
-<xsl:template match="authorgroup | db:authorgroup"/>
-<xsl:template match="copyright | db:copyright"/>
-<xsl:template match="legalnotice | db:legalnotice"/>
-<xsl:template match="personblurb | db:personblurb"/>
-<xsl:template match="revdescription | db:revdescription"/>
-<xsl:template match="revhistory | db:revhistory"/>
-<xsl:template match="revision | db:revision"/>
-<xsl:template match="revnumber | db:revnumber"/>
-<xsl:template match="revremark | db:revremark"/>
-
 <!-- Handled specially, so we can apply-templates -->
 <xsl:template match="label | db:label"/>
 
diff --git a/xslt/docbook/html/db2xhtml.xsl b/xslt/docbook/html/db2xhtml.xsl
index 226f6ec..6e534b5 100644
--- a/xslt/docbook/html/db2xhtml.xsl
+++ b/xslt/docbook/html/db2xhtml.xsl
@@ -48,7 +48,6 @@ DocBook to XHTML
 <xsl:include href="db2html-ebnf.xsl"/>
 <xsl:include href="db2html-funcsynopsis.xsl"/>
 <xsl:include href="db2html-index.xsl"/>
-<xsl:include href="db2html-info.xsl"/>
 <xsl:include href="db2html-inline.xsl"/>
 <xsl:include href="db2html-l10n.xsl"/>
 <xsl:include href="db2html-media.xsl"/>



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]