RE: DOCBOOK-APPS: depth of section numbering

From
Jeff Beal <>
Date
2002-06-17T14:19:09+00:00
ID
Thread
RE: DOCBOOK-APPS: depth of section numbering
OK.  I found a reasonably simple way to do this --- customize the template
named "label.this.section" in the "labels.xsl" stylesheet.  Make it look
like this (I haven't tested, but it should work.)

<xsl:template name="label.this.section">
 <xsl:param name="section" select="."/>
 <xsl:choose>
  <xsl:when test="name($section) = 'sect5'>
   <xsl:value-of select="0"/>
  </xsl:when>
  <xsl:when test="count($section/ancestor::section) &gt; 3">
   <xsl:value-of select="0"/>
  </xsl:when>
  <xsl:otherwise>
   <xsl:value-of select="$section.autolabel"/>
  </xsl:otherwise>
 </xsl:choose>
</xsl:template>

-----Original Message-----
From: Jeff Beal [mailto:]
Sent: Monday, June 17, 2002 9:57 AM
To: 'Michael Wiedmann'; DocBook-Apps ML
Subject: RE: DOCBOOK-APPS: depth of section numbering


Nevermind my last post.  I just read your question better.  There is no easy
way to do that.

-----Original Message-----
From: Michael Wiedmann [mailto:]
Sent: Monday, June 17, 2002 9:50 AM
To: DocBook-Apps ML
Subject: DOCBOOK-APPS: depth of section numbering


Using DocBook XSL 1-51-1:

I want to limit the section numbering - let me say - to depth 4 in 
HTML output. Is there an easy way to do this?

Michael
-- 
office:  
private:                  http://www.miwie.org/