|
Subject: Re: Counting lines From: Norman Walsh <norm@xxxxxxxxxxxxx> Date: Thu, 4 Dec 1997 15:57:31 -0500 |
FYI:
In response to something I said:
> On Fri, 27 Jun 1997, Norman Walsh wrote:
> > For example, suppose I wanted to write a style sheet that could
> > enumerate the lines of a ProgramListing in DocBook so that
> >
> > <programlisting>
> > int main (int argc, char **argv)
> > {
> > ...
> > }
> > </programlisting>
> >
> > came out as
> >
> > 1. int main (int argc, char **argv)
> > 2. {
> > ...
> > 97. }
> >
> > Can I? (er, no, _I_ can't ;-) But can it be done?! ;-)
>
Norbert replied:
> Not that I have ever tried it, but the paragraph flowobject
> has the characteristics line-number and numbered-lines?.
> From what I read there, it should work. (page 222 and 223
> in the standard)
And James said:
> This isn't in dsssl-o and isn't implemented in Jade.
But borrowing a technique from a posting by Henry Thompson,
the most recent DocBook stylesheets do include a (fairly
fragile) option to number lines in linespecific elements.
'thought you might want to know...
--norm
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| ANNOUNCE: Modular DocBook Styleshee, Norman Walsh | Thread | IDREFS with jade, Patrice Bonhomme |
| ANNOUNCE: Modular DocBook Styleshee, Norman Walsh | Date | IDREFS with jade, Patrice Bonhomme |
| Month |