Re: TOC in RTF backend

Subject: Re: TOC in RTF backend
From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx>
Date: Wed, 19 May 1999 07:07:09 -0400
At 99/05/19 09:55 +0200, Jany Quintard wrote:
>I am building a TOC for the RTF backend. For this, I use two modes (toc
>and body). In mode toc, I output the division titles with the page number
>where to find this title.
>My problem is : how do I get the page number (page-number-sosofo ?) I
>should obtain in the mode body to output it in mode toc.

By using (current-node-page-number-sosofo) in the toc mode during the
processing of the target node.  I usually combine this with a live link as
well along the lines of the following:

(mode toc
    (element (section title)
        (make paragraph
            (make link
                destination:    (current-node-address)
            (make leader
                (literal "."))
            (make link
                destination:    (current-node-address)

I hope this helps.

............ Ken

G. Ken Holman                  mailto:gkholman@xxxxxxxxxxxxxxxxxxxx
Crane Softwrights Ltd. 
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999  (Fax:-0995)
Website: XSL/XML/DSSSL/SGML services outline,  XSL/DSSSL shareware,
         stylesheet resource library, conference training schedule,
         commercial stylesheet training materials, on-line XSL CBT.

 DSSSList info and archive:

Current Thread