| <?xml version="1.0" encoding="UTF-8"?> |
| <!-- |
| Licensed to the Apache Software Foundation (ASF) under one or more |
| contributor license agreements. See the NOTICE file distributed with |
| this work for additional information regarding copyright ownership. |
| The ASF licenses this file to You under the Apache License, Version 2.0 |
| (the "License"); you may not use this file except in compliance with |
| the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, software |
| distributed under the License is distributed on an "AS IS" BASIS, |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| See the License for the specific language governing permissions and |
| limitations under the License. |
| --> |
| <!-- $Id$ --> |
| <testcase> |
| <info> |
| <p> |
| This test checks for bug 46960: retrieve-markers not cleared if a subsequent |
| retrieved marker is empty. |
| </p> |
| </info> |
| <fo> |
| <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> |
| <fo:layout-master-set> |
| <fo:simple-page-master master-name="a4" page-width="210mm" page-height="297mm" margin="5mm"> |
| <fo:region-body margin-top="2cm"/> |
| <fo:region-before extent="2cm" region-name="header"/> |
| </fo:simple-page-master> |
| </fo:layout-master-set> |
| <fo:page-sequence master-reference="a4"> |
| <fo:static-content flow-name="header"> |
| <fo:block><fo:retrieve-marker id="rm-cont-1" retrieve-class-name="Continued" retrieve-boundary="document" retrieve-position="first-starting-within-page"/></fo:block> |
| </fo:static-content> |
| <fo:flow flow-name="xsl-region-body"> |
| <fo:block><fo:marker marker-class-name="Continued"/>First Page</fo:block> |
| <fo:block break-before="page"><fo:marker marker-class-name="Continued">Continued</fo:marker>Second Page</fo:block> |
| <fo:block break-before="page"><fo:marker marker-class-name="Continued"/>Third Page</fo:block> |
| </fo:flow> |
| </fo:page-sequence> |
| </fo:root> |
| </fo> |
| <checks> |
| <!-- first retrieved marker is empty --> |
| <eval expected="0" xpath="(//page)[1]//regionBefore/block/@bpd" /> |
| <!-- second marker is "Continued" --> |
| <eval expected="Continued" xpath="(//page)[2]//regionBefore/block/lineArea/text/word" /> |
| <!-- third marker should be empty again --> |
| <eval expected="0" xpath="(//page)[3]//regionBefore/block/@bpd" /> |
| </checks> |
| </testcase> |