Re: numbered paragraphs in docbook

Subject: Re: numbered paragraphs in docbook
From: Alexander Taranov <tay@xxxxxxxxxx>
Date: Wed, 17 Jun 1998 13:44:42 +0400 (MSD)
Chris Maden writes:
 > [Norman Walsh]
 > > / Alexander Taranov <tay@xxxxxxxxxx> was heard to say:
 > > |   2. Title of sometnhing
 > > | 
 > > | 2.1 first para . . . . .
 > > 
 > > Modify the element construction rule for para in the appropriate
 > > contexts to output the (child-number) of its parent followed by its
 > > (child-number).  It may get a little more complicated than that,
 > > depending on what else occurs, but that's the basic idea.
 > 
 > The easiest way to do this is with (format-number-list) and
 > (element-number-list):
 > 
 > (format-number-list (element-number-list (list (norm "chapter")
 >                                                (norm "sect1")
 >                                                (norm "para"))
 >                                          snl)
 >                     "1"
 >                     ".")
 > 
 > (where (norm) is short for (general-name-normalize)).
Thanks, it works but you should remove 0's from element-number-list
in case your para is at chpter level
 > 
 > HTH,
 > Chris
 > -- 
 > <!NOTATION SGML.Geek PUBLIC "-//Anonymous//NOTATION SGML Geek//EN">
 > <!ENTITY crism PUBLIC "-//O'Reilly//NONSGML Christopher R. Maden//EN"
 > "<URL>http://www.oreilly.com/people/staff/crism/ <TEL>+1.617.499.7487
 > <USMAIL>90 Sherman Street, Cambridge, MA 02140 USA" NDATA SGML.Geek>
 > 
 > 
 >  DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


 DSSSList info and archive:  http://www.mulberrytech.com/dsssl/dssslist


Current Thread
  • numbered paragraphs in docbook
    • Alexander Taranov - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id HAA23777Thu, 11 Jun 1998 07:15:25 -0400 (EDT)
      • Norman Walsh - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id IAA25099Thu, 11 Jun 1998 08:02:46 -0400 (EDT)
        • Chris Maden - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id RAA12781Mon, 15 Jun 1998 17:56:30 -0400 (EDT)
          • Alexander Taranov - from mail1.ability.netby web4-1.ability.net (8.8.5/8.6.12) with ESMTP id FAA24223Wed, 17 Jun 1998 05:54:34 -0400 (EDT) <=