Index: /trunk/doc/manual/docbook2latex.xsl
===================================================================
--- /trunk/doc/manual/docbook2latex.xsl	(revision 56468)
+++ /trunk/doc/manual/docbook2latex.xsl	(revision 56469)
@@ -329,4 +329,9 @@
         </xsl:call-template>
       </xsl:when>
+      <xsl:when test="parent::sect2[@condition='no-toc'] or parent::refsect1 or (parent::section and count(ancestor::section) = 2)">
+        <xsl:call-template name="title-wrapper">
+          <xsl:with-param name="texcmd">\subsection*</xsl:with-param>
+        </xsl:call-template>
+      </xsl:when>
       <xsl:when test="name(..)='sect2'">
         <xsl:call-template name="title-wrapper">
@@ -334,4 +339,9 @@
         </xsl:call-template>
       </xsl:when>
+      <xsl:when test="parent::sect3[@condition='no-toc'] or parent::refsect2 or (parent::section and count(ancestor::section) = 3)">
+        <xsl:call-template name="title-wrapper">
+          <xsl:with-param name="texcmd">\subsubsection*</xsl:with-param>
+        </xsl:call-template>
+      </xsl:when>
       <xsl:when test="name(..)='sect3'">
         <xsl:call-template name="title-wrapper">
@@ -339,4 +349,9 @@
         </xsl:call-template>
       </xsl:when>
+      <xsl:when test="parent::sect4[@condition='no-toc'] or parent::refsect3 or (parent::section and count(ancestor::section) = 4)">
+        <xsl:call-template name="title-wrapper">
+          <xsl:with-param name="texcmd">\paragraph*</xsl:with-param>
+        </xsl:call-template>
+      </xsl:when>
       <xsl:when test="name(..)='sect4'">
         <xsl:call-template name="title-wrapper">
@@ -344,17 +359,12 @@
         </xsl:call-template>
       </xsl:when>
+      <xsl:when test="parent::sect5[@condition='no-toc'] or parent::refsect4 or (parent::section and count(ancestor::section) = 5)">
+        <xsl:call-template name="title-wrapper">
+          <xsl:with-param name="texcmd">\subparagraph*</xsl:with-param>
+        </xsl:call-template>
+      </xsl:when>
       <xsl:when test="name(..)='sect5'">
         <xsl:call-template name="title-wrapper">
           <xsl:with-param name="texcmd">\subparagraph</xsl:with-param>
-        </xsl:call-template>
-      </xsl:when>
-      <xsl:when test="name(..)='refsect1'">
-        <xsl:call-template name="title-wrapper">
-          <xsl:with-param name="texcmd">\subsection*</xsl:with-param>
-        </xsl:call-template>
-      </xsl:when>
-      <xsl:when test="name(..)='refsect2'">
-        <xsl:call-template name="title-wrapper">
-          <xsl:with-param name="texcmd">\subsubsection*</xsl:with-param>
         </xsl:call-template>
       </xsl:when>
