[GUMP] Build Failure - Fop
This email is autogenerated from the output from: http://jakarta.apache.org/builds/gump/2001-11-11/xml-fop.html Buildfile: build.xml init-avail: init-filters-xalan2: [copy] Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen init: [echo] --- Fop 1.0dev [1999-2001] prepare: [echo] Preparing the build directories [mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties [mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts [mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg [mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf [mkdir] Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph [copy] Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf codegen: [echo] Resetting codegen directory [copy] Copying 34 files to /home/rubys/jakarta/xml-fop/build/src/codegen [echo] Generating the java files from xml resources [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/allprops.xml [xslt] style: ./build/src/codegen/genconst.xsl [xslt] out: ./build/src/org/apache/fop/fo/properties/Constants.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/foproperties.xml [xslt] style: ./build/src/codegen/properties.xsl [xslt] out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/foproperties.xml [xslt] style: ./build/src/codegen/propmap.xsl [xslt] out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/foproperties.xml [xslt] style: ./build/src/codegen/enumgen.xsl [xslt] out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/extproperties.xml [xslt] style: ./build/src/codegen/properties.xsl [xslt] out: ./build/src/org/apache/fop/fo/properties/ext_ignore_this.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/extproperties.xml [xslt] style: ./build/src/codegen/propmap.xsl [xslt] out: ./build/src/org/apache/fop/fo/properties/ExtensionPropertyMapping.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/extproperties.xml [xslt] style: ./build/src/codegen/enumgen.xsl [xslt] out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/charlist.xml [xslt] style: ./build/src/codegen/code-point-mapping.xsl [xslt] out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/Courier.xml [xslt] style: ./build/src/codegen/font-file.xsl [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/Courier.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/Courier-Oblique.xml [xslt] style: ./build/src/codegen/font-file.xsl [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierOblique.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/Courier-Bold.xml [xslt] style: ./build/src/codegen/font-file.xsl [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBold.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/Courier-BoldOblique.xml [xslt] style: ./build/src/codegen/font-file.xsl [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBoldOblique.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/Helvetica.xml [xslt] style: ./build/src/codegen/font-file.xsl [xslt] out: ./build/src/org/apache/fop/render/pdf/fonts/Helvetica.java [xslt] [xslt] [xslt] xslt [xslt] in: ./build/src/codegen/Helvetica-Oblique.xml
cvs commit: xml-fop/src/org/apache/fop/layoutmgr AbstractLayoutManager.java BlockStackingLayoutManager.java LayoutManager.java PageLayoutManager.java
klease 01/11/11 06:11:46 Modified:src/org/apache/fop/layoutmgr AbstractLayoutManager.java BlockStackingLayoutManager.java LayoutManager.java PageLayoutManager.java Log: Add some more LayoutManagers and start to actually do something Revision ChangesPath 1.3 +4 -6 xml-fop/src/org/apache/fop/layoutmgr/AbstractLayoutManager.java Index: AbstractLayoutManager.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/layoutmgr/AbstractLayoutManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- AbstractLayoutManager.java2001/11/09 23:03:54 1.2 +++ AbstractLayoutManager.java2001/11/11 14:11:46 1.3 @@ -1,5 +1,5 @@ /* - * $Id: AbstractLayoutManager.java,v 1.2 2001/11/09 23:03:54 klease Exp $ + * $Id: AbstractLayoutManager.java,v 1.3 2001/11/11 14:11:46 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -10,7 +10,7 @@ import org.apache.fop.fo.FObj; import org.apache.fop.area.Area; -import java.util.Iterator; +import java.util.ListIterator; /** * The base class for all LayoutManagers. @@ -36,7 +36,7 @@ * its generateAreas method. */ public void generateAreas() { - Iterator children = fobj.getChildren(); + ListIterator children = fobj.getChildren(); while (children.hasNext()) { LayoutManager lm = ((FObj)children.next()).getLayoutManager(); if (lm != null) { @@ -84,15 +84,13 @@ * BPD. */ abstract public Area getParentArea(Area childArea); + public boolean generatesInlineAreas() { return false; } -public boolean generatesLineAreas() { - return false; -} /** * Add a child area to the current area. If this causes the maximum 1.2 +2 -2 xml-fop/src/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java Index: BlockStackingLayoutManager.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/layoutmgr/BlockStackingLayoutManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- BlockStackingLayoutManager.java 2001/11/09 21:57:47 1.1 +++ BlockStackingLayoutManager.java 2001/11/11 14:11:46 1.2 @@ -1,5 +1,5 @@ /* - * $Id: BlockStackingLayoutManager.java,v 1.1 2001/11/09 21:57:47 klease Exp $ + * $Id: BlockStackingLayoutManager.java,v 1.2 2001/11/11 14:11:46 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -184,7 +184,7 @@ * @param childArea the area to add: will be some block-stacked Area. */ public void addChild(Area childArea) { - addChildToArea((Block)childArea, getCurrentArea()); + addChildToArea(childArea, getCurrentArea()); } /** 1.2 +2 -1 xml-fop/src/org/apache/fop/layoutmgr/LayoutManager.java Index: LayoutManager.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/layoutmgr/LayoutManager.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- LayoutManager.java2001/11/09 21:57:47 1.1 +++ LayoutManager.java2001/11/11 14:11:46 1.2 @@ -1,5 +1,5 @@ /* - * $Id: LayoutManager.java,v 1.1 2001/11/09 21:57:47 klease Exp $ + * $Id: LayoutManager.java,v 1.2 2001/11/11 14:11:46 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -15,6 +15,7 @@ */ public interface LayoutManager { public void generateAreas(); +public boolean generatesInlineAreas(); public Area getParentArea (Area childArea); public void addChild (Area childArea); public boolean splitArea(Area areaToSplit, SplitContext context); 1.3 +5 -4 xml-fop/src/org/apache/fop/layoutmgr/PageLayoutManager.java Index: PageLayoutManager.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/layoutmgr/PageLayoutManager.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- PageLayoutManager.java2001/11/09 23:03:54 1.2 +++ PageLayoutManager.java2001/11/11 14:11:46 1.3 @@ -1,5 +1,5 @@ /* - * $Id: PageLayoutManager.java,v 1.2 2001/11/09
cvs commit: xml-fop/src/org/apache/fop/fo/pagination PageSequence.java
klease 01/11/11 06:15:10 Modified:src/org/apache/fop/fo FOText.java FObj.java src/org/apache/fop/fo/flow Block.java src/org/apache/fop/fo/pagination PageSequence.java Log: Integrate layout managers for text and block Revision ChangesPath 1.26 +6 -1 xml-fop/src/org/apache/fop/fo/FOText.java Index: FOText.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOText.java,v retrieving revision 1.25 retrieving revision 1.26 diff -u -r1.25 -r1.26 --- FOText.java 2001/11/09 11:32:37 1.25 +++ FOText.java 2001/11/11 14:15:09 1.26 @@ -1,5 +1,5 @@ /* - * $Id: FOText.java,v 1.25 2001/11/09 11:32:37 keiron Exp $ + * $Id: FOText.java,v 1.26 2001/11/11 14:15:09 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -16,6 +16,8 @@ import org.apache.fop.fo.properties.*; import org.apache.fop.apps.FOPException; import org.apache.fop.system.BufferManager; +import org.apache.fop.layoutmgr.LayoutManager; +import org.apache.fop.layoutmgr.TextLayoutManager; /** * a text node in the formatting object tree @@ -234,5 +236,8 @@ return -1; } +public LayoutManager getLayoutManager() { + return new TextLayoutManager(this, ca); +} } 1.24 +4 -3 xml-fop/src/org/apache/fop/fo/FObj.java Index: FObj.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FObj.java,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- FObj.java 2001/11/09 22:04:58 1.23 +++ FObj.java 2001/11/11 14:15:09 1.24 @@ -1,5 +1,5 @@ /* - * $Id: FObj.java,v 1.23 2001/11/09 22:04:58 klease Exp $ + * $Id: FObj.java,v 1.24 2001/11/11 14:15:09 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -25,6 +25,7 @@ import org.xml.sax.Attributes; import java.util.Iterator; +import java.util.ListIterator; import java.util.Vector; import java.util.Hashtable; @@ -199,8 +200,8 @@ } -public Iterator getChildren() { - return children.iterator(); +public ListIterator getChildren() { + return children.listIterator(); } public void setIsInTableCell() { 1.45 +3 -4 xml-fop/src/org/apache/fop/fo/flow/Block.java Index: Block.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/Block.java,v retrieving revision 1.44 retrieving revision 1.45 diff -u -r1.44 -r1.45 --- Block.java2001/11/09 22:08:49 1.44 +++ Block.java2001/11/11 14:15:10 1.45 @@ -1,5 +1,5 @@ /* - * $Id: Block.java,v 1.44 2001/11/09 22:08:49 klease Exp $ + * $Id: Block.java,v 1.45 2001/11/11 14:15:10 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -14,7 +14,7 @@ import org.apache.fop.datatypes.*; import org.apache.fop.apps.FOPException; import org.apache.fop.layoutmgr.LayoutManager; -//import org.apache.fop.layoutmgr.BlockLayoutManager; +import org.apache.fop.layoutmgr.BlockLayoutManager; import org.xml.sax.Attributes; @@ -353,8 +353,7 @@ } public LayoutManager getLayoutManager() { - //return new BlockLayoutManager(this); - return null; + return new BlockLayoutManager(this); } } 1.44 +27 -23xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java Index: PageSequence.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/PageSequence.java,v retrieving revision 1.43 retrieving revision 1.44 diff -u -r1.43 -r1.44 --- PageSequence.java 2001/11/09 22:37:40 1.43 +++ PageSequence.java 2001/11/11 14:15:10 1.44 @@ -1,5 +1,5 @@ /* - * $Id: PageSequence.java,v 1.43 2001/11/09 22:37:40 klease Exp $ + * $Id: PageSequence.java,v 1.44 2001/11/11 14:15:10 klease Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -242,6 +242,7 @@ else { this.mainFlow = (Flow)child; addFlow(mainFlow); + super.addChild(child); // For getChildren
Re: [REDESIGN] Initial cut at Layout Manager
Hi Arved, Nice to hear from you again. As you can see Keiron is doing most of the work, so he probably has some ideas for you. From my point of view, if you could look a bit at the LayoutManger classes (I've put a couple more in there) and the interfaces I'm starting to define with the Area classes, and make some comments it would help. The LayoutManager interface is still pretty simple. There are a few things bothering me though and I'd appreciate your feedback. One question is how much intelligence to put in the Area classes themselves and how much in the LayoutManagers which are creating them. For example, does the Area know how to calculate its own IPD and BPD when child areas are added, or does the LM tell it this? In the old scheme, the FO set dimensions on the Areas (in general). I always thought the Area classes should have done it. But now that we've moved layout intelligence into the LM classes, maybe its logical that they do the fancy calculations and set the results on the Area. I think we also need some input on Property (ie. trait) management on the areas (or on the LM?). Keiron has started to specify some interfaces. Also maybe we need to look at the class hierarchy some. I've already noticed I'm doing a bunch of casting in the LM code, which isn't usually a good sign. My short-term goal is to get just enough LM code in place to get a feel for how it should work and to stabilize interfaces with the Area classes. I don't want to attack the more complicated cases yet, though I've got some ideas for float management in the back of my mind. Regards, Karen Arved Sandstrom wrote: At 12:05 AM 11/10/01 +0100, Karen Lease wrote: Hi all, An initial version of the Layout Manager classes (package org.apache.fop.layoutmgr) is now in CVS, plus some related changes in Area (up for discussion; this is just past the pseudocode point, but at least it builds :-) and in the fo/pagination classes. Needless to say, it does nothing useful whatsoever yet. All I can say is that I'm grateful that the two of you, Keiron and yourself, have the time to do this. I've been tracking progress, and basically I am waiting for the right moment to jump in and help out with smaller bits, because I can squeeze out time for that...just not the bigger stuff. I guess what I'm asking is, is there any area in particular that I can assist with or should take a look at? Regards, Arved - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/apps Starter.java
keiron 01/11/11 23:35:17 Modified:src/org/apache/fop/apps Starter.java Log: clarified error message Revision ChangesPath 1.7 +4 -3 xml-fop/src/org/apache/fop/apps/Starter.java Index: Starter.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/apps/Starter.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- Starter.java 2001/08/21 06:18:54 1.6 +++ Starter.java 2001/11/12 07:35:17 1.7 @@ -1,5 +1,5 @@ /* - * $Id: Starter.java,v 1.6 2001/08/21 06:18:54 keiron Exp $ + * $Id: Starter.java,v 1.7 2001/11/12 07:35:17 keiron Exp $ * Copyright (C) 2001 The Apache Software Foundation. All rights reserved. * For details on use and redistribution please refer to the * LICENSE file included with these sources. @@ -48,8 +48,9 @@ parser.setFeature(http://xml.org/sax/features/namespace-prefixes;, true); } catch (SAXException e) { -throw new FOPException(Error in setting up parser feature namespace-prefixes\n - + You need a parser which supports SAX version 2, e); +throw new FOPException(Error: You need a parser which allows the + + http://xml.org/sax/features/namespace-prefixes; + + feature to be set to true to support namespaces, e); } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Generating indexes
Sounds to me like an XSLT challenge, rather than a FOP one. Hummm... interesting thing to work on when I've got some time to spend.. Cheers, Michiel $ -Original Message- $ From: Ramin Firoozye [mailto:[EMAIL PROTECTED]] $ Sent: zondag 11 november 2001 23:12 $ To: [EMAIL PROTECTED] $ Subject: Q: Generating indexes $ $ $ Greetings all, $ $ I've searched the fop-dev archive, combed through the draft spec, and $ trawled around Google, but haven't found an easy way to solve $ the 'Index $ Generation' problem. $ $ I'm trying to generate a traditional end-of-book index using $ FOP (version $ 0.20.2). $ The idea is that in the XML document source the author can $ specify something $ like: $ $ doc $ ... $ The mooseindex entry=Animal / frolics with the index $ entry=Animal $ /squirrel in the field. $ ... $ The index entry=Animal /geese smiled at the Kayaker. $ ... $ /doc $ $ From this, you want to end up with something like: $ $ A $ -- $ Animal 12, 18, 20 $ 25, 39 $ $ Ant 1, 15 $ ... $ $ Anyway, I've got most of it worked out in my head (and it hurts (:-) $ especially the bit about multiple page-number-citations $ referencing a single $ index entry). It all is so godawful gnarly and I thought I'd $ ask to see if $ anybody has figured out an easier way to do this in XSL:FO. $ $ Any tips or references would be appreciated. $ $ Thanks, $ Ramin $ --- $ Ramin Firoozye - [EMAIL PROTECTED] - Wizen Software, San Francisco, CA. $ --- $ $ $ - $ To unsubscribe, e-mail: [EMAIL PROTECTED] $ For additional commands, email: [EMAIL PROTECTED] $ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]