This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: 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:jeff.beal@ansys.com]
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:michael.wiedmann@detewe.de]
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:  michael.wiedmann@detewe.de
private: mw@miwie.in-berlin.de                 http://www.miwie.org/
         mw@miwie.org


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]