flyingsaucerproject/flyingsaucer — pull request #38 by jensrutschmann (2013-10-02 15:33:08+00:00)
Title: Support for page sequences in target-counter function

This change makes the target-counter() function aware of page sequences.

Until now when you have some introduction pages (title page, toc, etc) without page numbering and the actual numbering starting with 1 at the first content page, the target-counter function would always return the absolute page number of the target not the number relative to the page sequence containing that page.

Here is some example HTML:

```

first page

toc page

link to toc entry 1

link to toc entry 2

link to toc entry 3

link to toc entry 4

content page

toc entry here

toc entry here

content page

toc entry here

toc entry here

```