#8 Wrong page numbers in refentries

open
nobody
None
5
2009-04-27
2002-01-07
Peter Eisentraut
No

Please take the attached test.sgml file and format it
thus:

openjade -t tex -d
docbook-dsssl-1.74b/print/docbook.dsl -V
%refentry-new-page% test.sgml

(The refentry-new-page is not really necessary, you
could also just make the refentries long enough so the
are more than one page. It's important to have the
second refentry on a new page.)

The format with jadetex. Notice (also in attached DVI)
that the page numbers in each refentry restart at 1,
while they should just keep counting.

Analysis: Without knowing the DSSSL spec, I think the
page-number-restart characteristic is inherited from
some earlier element, probably the reference (where
it's not quite right either, but addressing that will
be more involved). Therefore the refentry needs to
reset it. See the attached patch.

I can't think of a way when one would *want* to restart
the page numbers in a refentry, and since refentry can
appear at a section level also it would be quite tricky
to do sensibly, so I think this change ought to work
for everyone.

Discussion

  • test source, result, and patch

     
    Attachments
    • milestone: --> 447635
     
  • Robert Stayton
    Robert Stayton
    2009-04-27

    • labels: 321158 -->
    • milestone: 447635 -->