ASF Bugzilla – Attachment 23863 Details for
Bug 46905
[PATCH] Implement keep-*.within-column
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
sample testcase
block_keep_within-column.xml (text/plain), 6.69 KB, created by
Andreas L. Delmelle
on 2009-06-24 00:33:46 UTC
(
hide
)
Description:
sample testcase
Filename:
MIME Type:
Creator:
Andreas L. Delmelle
Created:
2009-06-24 00:33:46 UTC
Size:
6.69 KB
patch
obsolete
><?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 whether keeps within-column are respected. > </p> > </info> > <fo> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > <fo:simple-page-master master-name="page" page-width="400pt" page-height="70pt"> > <fo:region-body column-count="5" /> > </fo:simple-page-master> > </fo:layout-master-set> > <fo:page-sequence master-reference="page" font-size="10pt"> > <fo:flow flow-name="xsl-region-body"> > <fo:block break-before="page"> > <!-- simple test: keep the second block together within > one column, breaking the preceding block early > if necessary --> > <fo:block id="block-1"> > [BOB-1] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-1] > </fo:block> > <fo:block id="block-2" keep-together.within-column="always"> > [BOB-2] foo bar foo bar foo bar foo bar foo [EOB-2] > </fo:block> > </fo:block> > <fo:block break-before="page"> > <!-- same as the first, but now a nested block > with a higher integer value, and some content > following --> > <fo:block id="block-3" keep-together.within-column="5"> > [BOB-3] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > <fo:block font-weight="bold" id="block-3a" keep-together.within-column="always"> > [BOB-3a] foo bar foo bar foo bar foo bar foo [EOB-3a] > </fo:block> > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-3] > </fo:block> > </fo:block> > <fo:block break-before="page"> > <!-- nested block must be kept together within the same > page, while the outer block may be broken, if necessary --> > <fo:block font-style="italic" id="block-4" keep-together.within-column="5"> > [BOB-4] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > <fo:block id="block-4a" keep-together.within-page="always"> > [BOB-4a] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-4a] > </fo:block> > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-4] > </fo:block> > </fo:block> > <fo:block break-before="page"> > <!-- test keep-with-next in conjunction with keep-together > respecting the default value for widows/orphans --> > <fo:block id="block-5"> > <fo:block id="block-5a"> > [BOB-5a] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-5a] > </fo:block> > <fo:block id="block-5b" keep-with-next.within-column="always"> > [BOB-5b] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-5b] > </fo:block> > <fo:block id="block-5c" keep-together.within-column="always"> > [BOB-5c] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-5c] > </fo:block> > </fo:block> > </fo:block> > <fo:block break-before="page"> > <!-- test keep-together in conjunction with keep-with-previous --> > <fo:block id="block-6"> > <fo:block id="block-6a"> > [BOB-6a] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-6a] > </fo:block> > <fo:block id="block-6b" keep-together.within-column="always"> > [BOB-6b] foo bar foo bar foo bar foo bar foo bar [EOB-6b] > </fo:block> > <fo:block id="block-6c" keep-with-previous.within-column="always"> > [BOB-6c] foo bar foo bar foo bar foo bar foo bar > foo bar foo bar foo bar foo bar foo bar [EOB-6c] > </fo:block> > </fo:block> > </fo:block> > </fo:flow> > </fo:page-sequence> > </fo:root> > </fo> > <checks> > <eval expected="10" xpath="count(//page)" /> > </checks> ></testcase> >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 46905
:
23411
|
23799
|
23800
|
23801
|
23802
| 23863 |
23864
|
23865
|
23886
|
23916
|
23990
|
24015
|
24152