Re: Counting lines

Subject: Re: Counting lines
From: Norbert Mikula <nmikula@xxxxxxxxxxxxxxxxx>
Date: Fri, 27 Jun 1997 17:27:53 +0200 (MET DST)
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?! ;-)

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)

Best regards,
Norbert H. Mikula

=====================================================
= SGML, XML, DSSSL, Intra- & Internet, AI, Java 
=====================================================
= mailto:nmikula@xxxxxxxxxxxxxxxxx 
= http://www.edu.uni-klu.ac.at/~nmikula
=====================================================


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


Current Thread
  • Counting lines
    • Norman Walsh - Fri, 27 Jun 1997 11:13:25 -0400 (EDT)
      • Norbert Mikula - Fri, 27 Jun 1997 11:25:30 -0400 (EDT) <=
      • <Possible follow-ups>
      • James Clark - Sat, 28 Jun 1997 00:36:41 -0400 (EDT)