Idea Delivered

This feature is being delivered in XPP 9.4.

implement a counter named 'pagenumber' that is hooked to %p4

Why?

Currently users need to know that the page number is sitting in something called %p4 and need to know the correct macro in order to read out the page number.
So people have to know that they have to use a construct like:

content: -xpp-perl(macro, 'ri', '%p4');

Implementation

have a reserved counter name that is connected to %p4

This will allow to be used in a 'content' property as:

content: counter(pagenumber);

Goal

  • create a system that is more CSS aware
  • make it easier on novice users