You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ad...@apache.org on 2007/11/04 11:48:31 UTC

svn commit: r591756 - in /xmlgraphics/fop/trunk: ./ src/java/org/apache/fop/layoutmgr/ src/java/org/apache/fop/layoutmgr/inline/ src/java/org/apache/fop/layoutmgr/list/ test/layoutengine/standard-testcases/

Author: adelmelle
Date: Sun Nov  4 02:48:30 2007
New Revision: 591756

URL: http://svn.apache.org/viewvc?rev=591756&view=rev
Log:

Added support for fo:markers on fo:inline and fo:basic-link.


Added:
    xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/markers_inline-level.xml   (with props)
Modified:
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ContentLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java
    xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java
    xmlgraphics/fop/trunk/status.xml

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AbstractLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -52,7 +52,7 @@
     /** Iterator for child LayoutManagers */
     protected ListIterator fobjIter = null;
     /** Marker map for markers related to this LayoutManager */
-    protected Map markers = null;
+    private Map markers = null;
 
     /** True if this LayoutManager has handled all of its content. */
     private boolean bFinished = false;
@@ -352,8 +352,8 @@
      */
     public boolean isFirst(Position pos) {
         //log.trace("isFirst() smallestPosNumberChecked=" + smallestPosNumberChecked + " " + pos);
-        if (pos.getIndex() < 0) {
-            throw new IllegalArgumentException("Only Positions with an index can be checked");
+        if (pos == null || pos.getIndex() < 0) {
+            throw new IllegalArgumentException("Only non-null Positions with an index can be checked");
         }
         if (pos.getIndex() == this.smallestPosNumberChecked) {
             return true;
@@ -372,8 +372,8 @@
      */
     public boolean isLast(Position pos) {
         //log.trace("isLast() lastGenPos=" + lastGeneratedPosition + " " + pos);
-        if (pos.getIndex() < 0) {
-            throw new IllegalArgumentException("Only Positions with an index can be checked");
+        if (pos == null || pos.getIndex() < 0) {
+            throw new IllegalArgumentException("Only non-null Positions with an index can be checked");
         }
         return (pos.getIndex() == this.lastGeneratedPosition
                 && isFinished());
@@ -387,4 +387,24 @@
         Map atts = getFObj().getForeignAttributes();
         targetArea.setForeignAttributes(atts);
     }
+    
+    /**
+     * Registers the FO's markers on the current PageViewport
+     */
+    protected void addMarkersToPage(boolean isStarting, boolean isFirst, boolean isLast) {
+        if (this.markers != null) {
+            getCurrentPV().addMarkers(
+                    this.markers, 
+                    isStarting, 
+                    isFirst, 
+                    isLast);
+        }
+    }
+
+    /** {@inheritDoc} */
+    public String toString() {
+        return (super.toString() + "[fobj=" + fobj.toString() + "]");
+    }
+    
+    
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/AreaAdditionUtil.java Sun Nov  4 02:48:30 2007
@@ -57,7 +57,7 @@
         LayoutManager lastLM = null;
         Position firstPos = null;
         Position lastPos = null;
-
+        
         // "unwrap" the NonLeafPositions stored in parentIter
         // and put them in a new list; 
         LinkedList positionList = new LinkedList();
@@ -94,12 +94,15 @@
             //doesn't give us that info.
         }
         
-        if (bslm != null && bslm.markers != null) {
-            bslm.getCurrentPV().addMarkers(bslm.markers, true, 
-                    bslm.isFirst(firstPos), bslm.isLast(lastPos));
+        if (bslm != null) {
+            bslm.addMarkersToPage(
+                    true, 
+                    bslm.isFirst(firstPos), 
+                    bslm.isLast(lastPos));
         }
 
         StackingIter childPosIter = new StackingIter(positionList.listIterator());
+
         while ((childLM = childPosIter.getNextChildLM()) != null) {
             // TODO vh: the test above might be problematic in some cases. See comment in
             // the TableCellLM.getNextKnuthElements method
@@ -117,10 +120,14 @@
             lc.setStackLimit(layoutContext.getStackLimit());
             childLM.addAreas(childPosIter, lc);
         }
-        if (bslm != null && bslm.markers != null) {
-            bslm.getCurrentPV().addMarkers(bslm.markers, false, 
-                    bslm.isFirst(firstPos), bslm.isLast(lastPos));
+        
+        if (bslm != null) {
+            bslm.addMarkersToPage(
+                    false, 
+                    bslm.isFirst(firstPos), 
+                    bslm.isLast(lastPos));
         }
+
         
     }
     

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockContainerLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -751,10 +751,9 @@
         }
 
         getPSLM().addIDToPage(getBlockContainerFO().getId());
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, true, isFirst(firstPos), isLast(lastPos));
-        }
-
+        
+        addMarkersToPage(true, isFirst(firstPos), isLast(lastPos));
+        
         if (bcpos == null) {
             if (bpUnit == 0) {
                 // the Positions in positionList were inside the elements
@@ -842,9 +841,7 @@
             bcpos.getBreaker().addContainedAreas();
         }
 
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, false, isFirst(firstPos), isLast(lastPos));
-        }
+        addMarkersToPage(false, isFirst(firstPos), isLast(lastPos));
 
         TraitSetter.addSpaceBeforeAfter(viewportBlockArea, layoutContext.getSpaceAdjust(), 
                 effSpaceBefore, effSpaceAfter);

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -309,9 +309,8 @@
         }
 
         getPSLM().addIDToPage(getBlockFO().getId());
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, true, isFirst(firstPos), isLast(lastPos));
-        }
+        
+        addMarkersToPage(true, isFirst(firstPos), isLast(lastPos));
 
         if (bpUnit == 0) {
             // the Positions in positionList were inside the elements
@@ -395,9 +394,7 @@
             childLM.addAreas(childPosIter, lc);
         }
 
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, false, isFirst(firstPos), isLast(lastPos));
-        }
+        addMarkersToPage(false, isFirst(firstPos), isLast(lastPos));
 
         TraitSetter.addSpaceBeforeAfter(curBlockArea, layoutContext.getSpaceAdjust(), 
                 effSpaceBefore, effSpaceAfter);

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -381,7 +381,8 @@
         if (contentList.size() > 0) {
             wrapPositionElements(contentList, returnList);
         } else {
-            //Empty fo:block, zero-length box makes sure the IDs are registered.
+            // Empty fo:block, zero-length box makes sure the IDs and/or markers 
+            // are registered.
             returnList.add(new KnuthBox(0, notifyPos(new Position(this)), true));
         }
 

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ContentLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ContentLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ContentLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/ContentLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -369,7 +369,7 @@
         return holder instanceof LineArea;
     }
 
-    /* (non-Javadoc)
+    /**
      * {@inheritDoc}
      */
     public Position notifyPos(Position pos) {

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/InlineLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -450,6 +450,11 @@
             lastLM = pos.getPosition().getLM();
         }*/
 
+        addMarkersToPage(
+                true, 
+                !areaCreated, 
+                lastPos == null || isLast(lastPos));
+        
         InlineArea parent = createArea(lastLM == null 
                                         || lastLM instanceof InlineLevelLayoutManager);
         parent.setBPD(alignmentContext.getHeight());
@@ -479,6 +484,7 @@
             prevLM = childLM;
         }
 
+        
         /* If this LM has a trailing fence, resolve trailing space
          * specs from descendants.  Otherwise, propagate any trailing
          * space specs to the parent LM via the layout context.  If
@@ -487,6 +493,7 @@
          * must be the last area for the current LM too.
          */
         boolean isLast = (getContext().isLastArea() && prevLM == lastChildLM);
+        
         if (hasTrailingFence(isLast)) {
             addSpace(getCurrentArea(),
                      getContext().getTrailingSpace().resolve(false),
@@ -506,6 +513,11 @@
         setTraits(areaCreated, lastPos == null || !isLast(lastPos));
         parentLM.addChildArea(getCurrentArea());
 
+        addMarkersToPage(
+                false, 
+                !areaCreated, 
+                lastPos == null || isLast(lastPos));
+        
         context.setFlags(LayoutContext.LAST_AREA, isLast);
         areaCreated = true;
     }
@@ -576,7 +588,4 @@
         getPSLM().addIDToPage(fobj.getId());
     }
     
-    public String toString() {
-        return (this.getClass().getName() + "[fobj=" + fobj.toString() + "]");
-    }
 }

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/inline/WrapperLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -48,8 +48,7 @@
         // be called. The area must also be added to the tree, because
         // determination of the X,Y position is done in the renderer.
         InlineArea area = new InlineArea();
-        String id = fobj.getId();
-        if (id != null && id.length() > 0) {
+        if (fobj.hasId()) {
             TraitSetter.setProducerID(area, fobj.getId());
         }
         return area;
@@ -64,8 +63,7 @@
      * @param context the layout context for adding the area
      */
     public void addAreas(PositionIterator posIter, LayoutContext context) {
-        String id = fobj.getId();
-        if (id != null && id.length() > 0) {
+        if (fobj.hasId()) {
             addId();
             InlineArea area = getEffectiveArea();
             parentLM.addChildArea(area);

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListBlockLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -191,9 +191,7 @@
             }
         }
 
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, true, isFirst(firstPos), isLast(lastPos));
-        }
+        addMarkersToPage(true, isFirst(firstPos), isLast(lastPos));
 
         StackingIter childPosIter = new StackingIter(positionList.listIterator());
         while ((childLM = childPosIter.getNextChildLM()) != null) {
@@ -206,9 +204,7 @@
             childLM.addAreas(childPosIter, lc);
         }
 
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, false, isFirst(firstPos), isLast(lastPos));
-        }
+        addMarkersToPage(false, isFirst(firstPos), isLast(lastPos));
 
         // We are done with this area add the background
         TraitSetter.addBackground(curBlockArea, 

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemContentLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -153,9 +153,7 @@
             }
         }
 
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, true, isFirst(firstPos), isLast(lastPos));
-        }
+        addMarkersToPage(true, isFirst(firstPos), isLast(lastPos));
         
         StackingIter childPosIter = new StackingIter(positionList.listIterator());
         while ((childLM = childPosIter.getNextChildLM()) != null) {
@@ -168,10 +166,8 @@
             childLM.addAreas(childPosIter, lc);
         }
 
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, false, isFirst(firstPos), isLast(lastPos));
-        }
-
+        addMarkersToPage(false, isFirst(firstPos), isLast(lastPos));
+        
         flush();
 
         curBlockArea = null;

Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/layoutmgr/list/ListItemLayoutManager.java Sun Nov  4 02:48:30 2007
@@ -482,9 +482,7 @@
             }
         }
 
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, true, isFirst(firstPos), isLast(lastPos));
-        }
+        addMarkersToPage(true, isFirst(firstPos), isLast(lastPos));
 
         // use the first and the last ListItemPosition to determine the 
         // corresponding indexes in the original labelList and bodyList
@@ -542,9 +540,7 @@
             curBlockArea.setBPD(savedBPD);
         }
 
-        if (markers != null) {
-            getCurrentPV().addMarkers(markers, false, isFirst(firstPos), isLast(lastPos));
-        }
+        addMarkersToPage(false, isFirst(firstPos), isLast(lastPos));
 
         // We are done with this area add the background
         TraitSetter.addBackground(curBlockArea, 

Modified: xmlgraphics/fop/trunk/status.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/status.xml?rev=591756&r1=591755&r2=591756&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/status.xml (original)
+++ xmlgraphics/fop/trunk/status.xml Sun Nov  4 02:48:30 2007
@@ -28,6 +28,9 @@
 
   <changes>
     <release version="FOP Trunk">
+      <action context="Code" dev="AD" type="add">
+        Added support for fo:markers in fo:inline and fo:basic-link.
+      </action>
       <action context="Code" dev="JM" type="update">
         PDF Transcoder (SVG) text painting has been completely rewritten.
         Except for some special cases (with filters for example), all text

Added: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/markers_inline-level.xml
URL: http://svn.apache.org/viewvc/xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/markers_inline-level.xml?rev=591756&view=auto
==============================================================================
--- xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/markers_inline-level.xml (added)
+++ xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/markers_inline-level.xml Sun Nov  4 02:48:30 2007
@@ -0,0 +1,110 @@
+<?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 that an empty fo:title does not cause a
+NullPointerException and does not generate any text.
+    </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-height="5in" page-width="6in" margin-top=".5in" margin-bottom=".5in" margin-left=".9in" margin-right=".9in">
+          <fo:region-body margin-bottom=".5in" margin-top="2.5in" />
+          <fo:region-before region-name="header" extent="2.5in" />
+          <fo:region-after region-name="footer" extent=".5in" />
+        </fo:simple-page-master>
+      </fo:layout-master-set>
+      <fo:page-sequence master-reference="page">
+        <fo:static-content flow-name="header">
+          <fo:block font-size="6pt">
+            <fo:block>
+              H1 (boundary="document", position="first-including-carryover"): <fo:retrieve-marker retrieve-class-name="H1" retrieve-position="first-including-carryover" retrieve-boundary="document"/>
+            </fo:block>
+            <fo:block>
+              H1 (boundary="document", position="first-starting-within-page"): <fo:retrieve-marker retrieve-class-name="H1" retrieve-position="first-starting-within-page" retrieve-boundary="document"/>
+            </fo:block>
+            <fo:block>
+              H1 (boundary="document", position="last-ending-within-page"): <fo:retrieve-marker retrieve-class-name="H1" retrieve-position="last-ending-within-page" retrieve-boundary="document"/>
+            </fo:block>
+          </fo:block>
+        </fo:static-content>
+        <fo:flow flow-name="xsl-region-body">
+          <fo:block>
+            BLOCK TEXT 
+            <fo:inline font-weight="bold">
+              <fo:marker marker-class-name="H1">H1.1</fo:marker>
+              INLINE TEXT WITH MARKER H1.1
+            </fo:inline>
+            BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+            BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+            BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+            <fo:inline font-weight="bold">
+              <fo:marker marker-class-name="H1">H1.2</fo:marker>
+              INLINE TEXT WITH MARKER H1.2
+            </fo:inline>
+            TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT
+            <fo:inline font-weight="bold" id="m13">
+              <fo:marker marker-class-name="H1">H1.3</fo:marker>
+              INLINE TEXT WITH MARKER H1.3 AND A NESTED BLOCK WITH MORE INLINES
+              <fo:block break-after="page">
+                BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+                BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+                BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+              </fo:block>
+              <fo:block>
+                BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+                <fo:inline id="m13a"><fo:marker marker-class-name="H1">H1.3a</fo:marker></fo:inline>
+                BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+                BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+              </fo:block>
+            </fo:inline>
+            BLOCK TEXT BLOCK TEXT BLOCK TEXT BLOCK TEXT 
+          </fo:block>
+        </fo:flow>
+      </fo:page-sequence>
+    </fo:root>
+  </fo>
+  <checks>
+    <!-- first page: only "H1.1" -->
+    <eval expected="H1.1" xpath="//pageViewport[@key='P1']//regionBefore/block[1]/block[1]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.1" xpath="//pageViewport[@key='P1']//regionBefore/block[1]/block[2]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.1" xpath="//pageViewport[@key='P1']//regionBefore/block[1]/block[3]/lineArea[1]/text[2]/word" />
+    <!-- second page: only "H1.2" -->
+    <eval expected="H1.2" xpath="//pageViewport[@key='P2']//regionBefore/block[1]/block[1]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.2" xpath="//pageViewport[@key='P2']//regionBefore/block[1]/block[2]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.2" xpath="//pageViewport[@key='P2']//regionBefore/block[1]/block[3]/lineArea[1]/text[2]/word" />
+    <!-- third and fourth page: only "H1.3" -->
+    <eval expected="H1.3" xpath="//pageViewport[@key='P3']//regionBefore/block[1]/block[1]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3" xpath="//pageViewport[@key='P3']//regionBefore/block[1]/block[2]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3" xpath="//pageViewport[@key='P3']//regionBefore/block[1]/block[3]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3" xpath="//pageViewport[@key='P4']//regionBefore/block[1]/block[1]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3" xpath="//pageViewport[@key='P4']//regionBefore/block[1]/block[2]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3" xpath="//pageViewport[@key='P4']//regionBefore/block[1]/block[3]/lineArea[1]/text[2]/word" />
+    <!-- fifth page: "H1.3" carries over from previous pages; "H1.3a" is starting and ending within page -->
+    <eval expected="H1.3" xpath="//pageViewport[@key='P5']//regionBefore/block[1]/block[1]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3a" xpath="//pageViewport[@key='P5']//regionBefore/block[1]/block[2]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3a" xpath="//pageViewport[@key='P5']//regionBefore/block[1]/block[3]/lineArea[1]/text[2]/word" />
+    <!-- last page: again, only "H1.3" -->
+    <eval expected="H1.3" xpath="//pageViewport[@key='P6']//regionBefore/block[1]/block[1]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3" xpath="//pageViewport[@key='P6']//regionBefore/block[1]/block[2]/lineArea[1]/text[2]/word" />
+    <eval expected="H1.3" xpath="//pageViewport[@key='P6']//regionBefore/block[1]/block[3]/lineArea[1]/text[2]/word" />
+  </checks>
+</testcase>

Propchange: xmlgraphics/fop/trunk/test/layoutengine/standard-testcases/markers_inline-level.xml
------------------------------------------------------------------------------
    svn:keywords = Id



---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org