--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>\r
+<!--\r
+ Copyright 2005 The Apache Software Foundation\r
+\r
+ Licensed under the Apache License, Version 2.0 (the "License");\r
+ you may not use this file except in compliance with the License.\r
+ You may obtain a copy of the License at\r
+\r
+ http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+ Unless required by applicable law or agreed to in writing, software\r
+ distributed under the License is distributed on an "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+ See the License for the specific language governing permissions and\r
+ limitations under the License.\r
+-->\r
+<!-- $Id: page-number3.xml 198733 2005-06-09 14:20:45Z jeremias $ -->\r
+<testcase>\r
+ <info>\r
+ <p>\r
+ This test checks do:page-number.\r
+ </p>\r
+ </info>\r
+ <fo>\r
+ <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">\r
+ <fo:layout-master-set>\r
+ <fo:simple-page-master master-name="master1" page-width="5in" page-height="1in">\r
+ <fo:region-body/>\r
+ </fo:simple-page-master>\r
+ </fo:layout-master-set>\r
+ <fo:page-sequence master-reference="master1" white-space-collapse="true" initial-page-number="9">\r
+ <fo:flow flow-name="xsl-region-body">\r
+ <fo:block><fo:inline>9</fo:inline> <fo:inline>10</fo:inline></fo:block>\r
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>\r
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>\r
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>\r
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>\r
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>\r
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>\r
+ <fo:block>page: -><fo:page-number color="red"/><-</fo:block>\r
+ </fo:flow>\r
+ </fo:page-sequence>\r
+ </fo:root>\r
+ </fo>\r
+ <checks>\r
+ <eval expected="9" xpath="//pageViewport[@nr=9]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text[2]"/>\r
+ <eval expected="6672" xpath="//pageViewport[@nr=9]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text[2]/@ipd"/>\r
+\r
+ <eval expected="10" xpath="//pageViewport[@nr=10]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text[2]"/>\r
+ <eval expected="13344" xpath="//pageViewport[@nr=10]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text[2]/@ipd"/>\r
+\r
+ </checks>\r
+</testcase>\r