Re: nested blocks
Hi Koen, I know it seems strange, but the FOP behavior here is actually correct. The XSL CR says that the indents are with respect to the nearest reference-area. A block fo isn't a reference area. So if you want the blocks to look nested, you have to put more indent on the inner one. Regards, Karen Lease [EMAIL PROTECTED] wrote: Hello, In the fragmant below i have two nested blocks. if I process the file with XEP the second block has a left margin of 1in relative to the margin of the outer block (so 2 inch in total). if I process this with FOP both blocks have the same margin of 1 inch (so they do not really seem to nest). Does anybody know how to get the XEP behaviour with FOP, to make nested blocks behave as nested? Kind regards, Koen Handekyn -- ?xml version=1.0 encoding=UTF-8? fo:root xmlns:fo=http://www.w3.org/1999/XSL/Format; fo:layout-master-set fo:simple-page-master master-name=my-page fo:region-body margin-left=1in margin-top=1in margin-right=1in margin-bottom=1in/ /fo:simple-page-master /fo:layout-master-set fo:page-sequence master-name=my-page fo:flow flow-name=xsl-region-body fo:block margin-left=1in This is an example of two nested blocks. This flows in the outer block. fo:block margin-left=1in And this is the nested block. /fo:block /fo:block /fo:flow /fo:page-sequence /fo:root - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
[GUMP] Build Failure - Fop
This email is autogenerated from the output from: http://jakarta.apache.org/builds/gump/2001-08-05/xml-fop.html Buildfile: build.xml init-avail: init-filters-xalan1: init-filters-xalan2: Copying 1 file to /home/rubys/jakarta/xml-fop/build/src/codegen init: --- Fop 0.19.0-CVS [1999-2001] prepare: Preparing the build directories Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/fo/properties Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/render/pdf/fonts Created dir: /home/rubys/jakarta/xml-fop/build/src/org/apache/fop/svg Created dir: /home/rubys/jakarta/xml-fop/build/classes/conf Created dir: /home/rubys/jakarta/xml-fop/build/classes/hyph Copying 3 files to /home/rubys/jakarta/xml-fop/build/classes/conf codegen: Resetting codegen directory Copying 35 files to /home/rubys/jakarta/xml-fop/build/src/codegen Generating the java files from xml resources xslt in: ./build/src/codegen/svgelements.xml style: ./src/codegen/propmaker.xsl out: ./build/src/codegen/svgproperties.xml xslt in: ./build/src/codegen/allprops.xml style: ./build/src/codegen/genconst.xsl out: ./build/src/org/apache/fop/fo/properties/Constants.java xslt in: ./build/src/codegen/foproperties.xml style: ./build/src/codegen/properties.xsl out: ./build/src/org/apache/fop/fo/properties/fo_ignore_this.java file:///home/rubys/jakarta/xml-fop/build/src/codegen/properties.xsl; Line 12; Column 14; Do colorkw.xml xslt in: ./build/src/codegen/foproperties.xml style: ./build/src/codegen/propmap.xsl out: ./build/src/org/apache/fop/fo/properties/FOPropertyMapping.java xslt in: ./build/src/codegen/foproperties.xml style: ./build/src/codegen/enumgen.xsl out: ./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java xslt in: ./build/src/codegen/svgproperties.xml style: ./build/src/codegen/properties.xsl out: ./build/src/org/apache/fop/fo/properties/svg_ignore_this.java xslt in: ./build/src/codegen/svgproperties.xml style: ./build/src/codegen/propmap.xsl out: ./build/src/org/apache/fop/fo/properties/SVGPropertyMapping.java xslt in: ./build/src/codegen/svgproperties.xml style: ./build/src/codegen/enumgen.xsl out: ./build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java xslt in: ./build/src/codegen/extproperties.xml style: ./build/src/codegen/properties.xsl out: ./build/src/org/apache/fop/fo/properties/ext_ignore_this.java xslt in: ./build/src/codegen/extproperties.xml style: ./build/src/codegen/propmap.xsl out: ./build/src/org/apache/fop/fo/properties/ExtensionPropertyMapping.java xslt in: ./build/src/codegen/extproperties.xml style: ./build/src/codegen/enumgen.xsl out: ./build/src/org/apache/fop/fo/properties/extenums_ignore_this.java xslt in: ./build/src/codegen/svgelements.xml style: ./build/src/codegen/elements.xsl out: ./build/src/org/apache/fop/svg/ele_ignore_this.java xslt in: ./build/src/codegen/charlist.xml style: ./build/src/codegen/code-point-mapping.xsl out: ./build/src/org/apache/fop/render/pdf/CodePointMapping.java xslt in: ./build/src/codegen/Courier.xml style: ./build/src/codegen/font-file.xsl out: ./build/src/org/apache/fop/render/pdf/fonts/Courier.java xslt in: ./build/src/codegen/Courier-Oblique.xml style: ./build/src/codegen/font-file.xsl out: ./build/src/org/apache/fop/render/pdf/fonts/CourierOblique.java xslt in: ./build/src/codegen/Courier-Bold.xml style: ./build/src/codegen/font-file.xsl out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBold.java xslt in: ./build/src/codegen/Courier-BoldOblique.xml style: ./build/src/codegen/font-file.xsl out: ./build/src/org/apache/fop/render/pdf/fonts/CourierBoldOblique.java xslt in: ./build/src/codegen/Helvetica.xml style: ./build/src/codegen/font-file.xsl out: ./build/src/org/apache/fop/render/pdf/fonts/Helvetica.java xslt in:
cvs commit: xml-fop/src/org/apache/fop/layout BorderAndPadding.java
klease 01/08/05 08:45:35 Modified:src/org/apache/fop/layout BorderAndPadding.java Log: Add clone method Revision ChangesPath 1.5 +34 -4 xml-fop/src/org/apache/fop/layout/BorderAndPadding.java Index: BorderAndPadding.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/layout/BorderAndPadding.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- BorderAndPadding.java 2001/07/30 20:29:27 1.4 +++ BorderAndPadding.java 2001/08/05 15:45:35 1.5 @@ -1,5 +1,5 @@ /* - * $Id: BorderAndPadding.java,v 1.4 2001/07/30 20:29:27 tore Exp $ + * $Id: BorderAndPadding.java,v 1.5 2001/08/05 15:45:35 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,14 +10,14 @@ import org.apache.fop.datatypes.ColorType; import org.apache.fop.datatypes.CondLength; -public class BorderAndPadding { +public class BorderAndPadding implements Cloneable { public static final int TOP = 0; public static final int RIGHT = 1; public static final int BOTTOM = 2; public static final int LEFT = 3; -private static class ResolvedCondLength { +private static class ResolvedCondLength implements Cloneable { int iLength;// Resolved length value boolean bDiscard; @@ -26,9 +26,33 @@ iLength = length.mvalue(); } + public Object clone() throws CloneNotSupportedException { + return super.clone(); + } + +} + +/** + * Return a full copy of the BorderAndPadding information. This clones all + * padding and border information. + * @return The copy. + */ +public Object clone() throws CloneNotSupportedException { + BorderAndPadding bp = (BorderAndPadding) super.clone(); + bp.padding = (ResolvedCondLength[])padding.clone(); + bp.borderInfo = (BorderInfo[])borderInfo.clone(); + for (int i=0; ipadding.length; i++) { + if (padding[i] != null) { + bp.padding[i]=(ResolvedCondLength)padding[i].clone(); + } + if (borderInfo[i] != null) { + bp.borderInfo[i]=(BorderInfo)borderInfo[i].clone(); + } + } + return bp; } -public static class BorderInfo { +public static class BorderInfo implements Cloneable { private int mStyle; // Enum for border style private ColorType mColor;// Border color private ResolvedCondLength mWidth; @@ -39,6 +63,12 @@ mColor = color; } + public Object clone() throws CloneNotSupportedException { + BorderInfo bi = (BorderInfo) super.clone(); + bi.mWidth = (ResolvedCondLength)mWidth.clone(); + // do we need to clone the Color too??? + return bi; + } } private BorderInfo[] borderInfo = new BorderInfo[4]; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo/flow TableCell.java
klease 01/08/05 08:46:21 Modified:src/org/apache/fop/fo/flow TableCell.java Log: Use a copy of BorderAndPadding to fix alignment bugs in header/footer cells Revision ChangesPath 1.37 +8 -2 xml-fop/src/org/apache/fop/fo/flow/TableCell.java Index: TableCell.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/flow/TableCell.java,v retrieving revision 1.36 retrieving revision 1.37 diff -u -r1.36 -r1.37 --- TableCell.java2001/07/30 20:29:23 1.36 +++ TableCell.java2001/08/05 15:46:21 1.37 @@ -1,5 +1,5 @@ /* - * -- $Id: TableCell.java,v 1.36 2001/07/30 20:29:23 tore Exp $ -- + * -- $Id: TableCell.java,v 1.37 2001/08/05 15:46:21 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. @@ -204,7 +204,13 @@ cellArea.foCreator = this;// G Seshadri cellArea.setPage(area.getPage()); -cellArea.setBorderAndPadding(propMgr.getBorderAndPadding()); + try { + cellArea.setBorderAndPadding((BorderAndPadding) + propMgr.getBorderAndPadding().clone()); + } catch (CloneNotSupportedException e) { +System.err.println(Can't clone BorderAndPadding: + e) ; +cellArea.setBorderAndPadding(propMgr.getBorderAndPadding()); +} cellArea.setBackgroundColor(this.backgroundColor); cellArea.start(); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[Bug 2995] New: - runtests.bat has a cvs merging error in the distribution
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2995 *** shadow/2995 Sun Aug 5 19:01:56 2001 --- shadow/2995.tmp.28147 Sun Aug 5 19:01:56 2001 *** *** 0 --- 1,24 + ++ + | runtests.bat has a cvs merging error in the distribution | + ++ + |Bug #: 2995Product: Fop | + | Status: NEW Version: 0.17| + | Resolution:Platform: PC | + | Severity: Normal OS/Version: Windows NT/2K | + | Priority: Other Component: general | + ++ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + ++ + | URL: | + ++ + | DESCRIPTION | + The docs/examples/runtests.bat is the examples directory in + Fop-0.19.0-CVS-src.tar.gz has a cvs merging problem in it. One of these + + blah blah blah + == + blah blah blah + + I'm sure you know what I mean. \ No newline at end of file - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/render/awt AWTRenderer.java
keiron 01/08/05 23:21:03 Modified:src/org/apache/fop/render/pdf PDFRenderer.java src/org/apache/fop/render/ps PSRenderer.java src/org/apache/fop/svg PDFTranscoder.java src/org/apache/fop/render/awt AWTRenderer.java Log: updated to new batik interface Revision ChangesPath 1.78 +3 -1 xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java Index: PDFRenderer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/pdf/PDFRenderer.java,v retrieving revision 1.77 retrieving revision 1.78 diff -u -r1.77 -r1.78 --- PDFRenderer.java 2001/08/01 23:08:55 1.77 +++ PDFRenderer.java 2001/08/06 06:21:02 1.78 @@ -1,5 +1,5 @@ /* - * $Id: PDFRenderer.java,v 1.77 2001/08/01 23:08:55 gears Exp $ + * $Id: PDFRenderer.java,v 1.78 2001/08/06 06:21:02 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. @@ -929,6 +929,8 @@ } public void registerExtension(BridgeExtension be) {} + +public void handleElement(Element elt, Object data) {} } 1.7 +2 -1 xml-fop/src/org/apache/fop/render/ps/PSRenderer.java Index: PSRenderer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/ps/PSRenderer.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- PSRenderer.java 2001/08/01 23:08:55 1.6 +++ PSRenderer.java 2001/08/06 06:21:02 1.7 @@ -1,5 +1,5 @@ /* - * $Id: PSRenderer.java,v 1.6 2001/08/01 23:08:55 gears Exp $ + * $Id: PSRenderer.java,v 1.7 2001/08/06 06:21:02 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. @@ -1025,6 +1025,7 @@ public void registerExtension(BridgeExtension be) {} +public void handleElement(Element elt, Object data) {} } 1.8 +4 -2 xml-fop/src/org/apache/fop/svg/PDFTranscoder.java Index: PDFTranscoder.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/PDFTranscoder.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- PDFTranscoder.java2001/07/30 20:29:34 1.7 +++ PDFTranscoder.java2001/08/06 06:21:02 1.8 @@ -1,5 +1,5 @@ /* - * $Id: PDFTranscoder.java,v 1.7 2001/07/30 20:29:34 tore Exp $ + * $Id: PDFTranscoder.java,v 1.8 2001/08/06 06:21:02 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. @@ -124,7 +124,7 @@ * millimeter conversion factor. * * @author a href=mailto:[EMAIL PROTECTED];Keiron Liddle/a - * @version $Id: PDFTranscoder.java,v 1.7 2001/07/30 20:29:34 tore Exp $ + * @version $Id: PDFTranscoder.java,v 1.8 2001/08/06 06:21:02 keiron Exp $ */ public class PDFTranscoder extends XMLAbstractTranscoder { @@ -476,6 +476,8 @@ } public void registerExtension(BridgeExtension be) {} + +public void handleElement(Element elt, Object data) {} } 1.30 +3 -1 xml-fop/src/org/apache/fop/render/awt/AWTRenderer.java Index: AWTRenderer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/render/awt/AWTRenderer.java,v retrieving revision 1.29 retrieving revision 1.30 diff -u -r1.29 -r1.30 --- AWTRenderer.java 2001/08/01 23:08:55 1.29 +++ AWTRenderer.java 2001/08/06 06:21:02 1.30 @@ -1,5 +1,5 @@ /* - * $Id: AWTRenderer.java,v 1.29 2001/08/01 23:08:55 gears Exp $ + * $Id: AWTRenderer.java,v 1.30 2001/08/06 06:21:02 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. @@ -26,6 +26,7 @@ import org.w3c.dom.svg.*; import org.w3c.dom.Document; +import org.w3c.dom.Element; import org.apache.batik.bridge.*; import org.apache.batik.swing.svg.*; @@ -1094,6 +1095,7 @@ public void registerExtension(BridgeExtension be) {} +public void handleElement(Element elt, Object data) {} } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]