Ludger said:
> I.e. I'd expect something like the following to be possible:
> chapter {
> page-break-before: always;
> counter-reset: chapterPageCounter 1;
> string-set: chapterName self;
> }
> @page {
> counter-increment: chapterPageCounter;
> @bottom-right {
> Content: "Page " counter(chapterPageCounter) "of section " open-quote string(chapterName) close-quote;
> }
> }
See http://dev.w3.org/csswg/css3-page/#page-based-counters, in particular:
"If a counter that has not been reset or incremented within the margin context or the page context is used by counter() or counters() in the margin context, then the resultant value is exactly as if the margin box were an element within the document at the start of the page, inside the deepest element in the normal flow that spans the page break. Use of the counter in this way does not affect the calculation of the counter's value."
You can declare your counter in 'document space' and reference it within 'page space'.
Best wishes,
Melinda