Fix page numbering bug

Somehow the - 1 doesn't work in version 2 anymore. Let's pray that
this doesn't affect any other layouts
Bugfix xpath function floor()
Enhance xml layout schema

(needs to be documented)