Counting lines

Subject: Counting lines
From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: Fri, 27 Jun 1997 11:14:04 -0400
[Resending]

From: Norman Walsh <norm@xxxxxxxxxxxxx>
Date: 26 Jun 1997 08:52:25 -0400
Message-ID: <u7mfhle5y.fsf@xxxxxxxxxxxxx>

Is it possible to grab individual ranges of characters
(specifically lines of text) out of an element with DSSSL (and
in Jade 0.8)?

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?! ;-)

--norm



 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) <=
      • <Possible follow-ups>
      • James Clark - Sat, 28 Jun 1997 00:36:41 -0400 (EDT)