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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: numbered paragraphs in docbook, Chris Maden | Thread | QUE: Stop ã from being translat, Tsoukalos Mihalis |
re: Jade/MIF, Jack Fitzpatrick | Date | ANNOUNCEMENT: DSSSL Colour Resource, G. Ken Holman |
Month |