This is a followup or related to
https://www.princexml.com/forum/topic/504/reset-the-pages-plural-counter
My document contains several repetitive elements like
In the bottom of each page I need to print "Page x of y":
I reset the counter for each section using
.
and the out is alway "Page 1 of 0", "Page 2 of 0", ....
So somehow the target-counter() call does not work as expected.
Any idea?
https://www.princexml.com/forum/topic/504/reset-the-pages-plural-counter
My document contains several repetitive elements like
<section class="account-statement">
........
<div class="end"></div>
</section>
In the bottom of each page I need to print "Page x of y":
@bottom-right {
content: "Page " counter(page) " of " target-counter(url(.end), page);
}
I reset the counter for each section using
.
account-statement {
page: statement;
counter-reset: page 1;
}
and the out is alway "Page 1 of 0", "Page 2 of 0", ....
So somehow the target-counter() call does not work as expected.
Any idea?
Edited by yet