RE: Embedded files in FOP
man thanks J, I'll go check the archive and see what I can get from that. :-) -Original Message- From: J.Pietschmann [mailto:[EMAIL PROTECTED]] Sent: 01 October 2002 21:26 To: [EMAIL PROTECTED] Subject: Re: Embedded files in FOP [EMAIL PROTECTED] wrote: I am presently working on a project that requires Tif files to be rendered in PDF, but with the FOP tool this causes an error. I have read in a book somewhere on XSL-FO that not all image formats can be used for FOPis Tif one of them, if so is there anyway to get around this? Most likely, you don't have Jimi installed, the library which is by default resonsible for dealing with TIFF images. There are some instructions in the documentation which comes with FOP. If this doesn't help enough, the list archive has some more hints, as already mentioned. J.Pietschmann - 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/datatypes AbstractPropertyValue.java
pbwest 2002/10/01 23:58:25 Modified:src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design AbstractPropertyValue.java Log: Added stackedBy. Revision ChangesPath No revision No revision 1.1.2.3 +26 -5 xml-fop/src/org/apache/fop/datatypes/Attic/AbstractPropertyValue.java Index: AbstractPropertyValue.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/AbstractPropertyValue.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- AbstractPropertyValue.java18 Sep 2002 15:24:11 - 1.1.2.2 +++ AbstractPropertyValue.java2 Oct 2002 06:58:25 - 1.1.2.3 @@ -3,6 +3,7 @@ import org.apache.fop.fo.PropertyConsts; import org.apache.fop.fo.PropNames; import org.apache.fop.fo.Properties; +import org.apache.fop.fo.FONode; import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.datatypes.PropertyValue; @@ -22,19 +23,24 @@ public abstract class AbstractPropertyValue implements PropertyValue, Cloneable - { - +{ + /** * An integer index to the type of property of which this is a value. */ protected int property; - + /** * An integer property type. */ public final int type; /** + * The ttFONode/tt that stacked this value. + */ +private FONode stackedBy = null; + +/** * @param index index of the property in the property arrays. * @param type of this value */ @@ -81,6 +87,21 @@ */ public int getType() { return type; +} + +/** + * Set the node that stacked this value. + * @param node - the ttFONode/tt that stacked this value. + */ +public void setStackedBy(FONode node) { +stackedBy = node; +} + +/** + * Get the node that stacked this value. + */ +public FONode getStackedBy() { +return stackedBy; } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/datatypes PropertyValue.java PropertyValueList.java
pbwest 2002/10/02 00:00:08 Modified:src/org/apache/fop/datatypes Tag: FOP_0-20-0_Alt-Design PropertyValue.java PropertyValueList.java Log: Added stackedBy. Revision ChangesPath No revision No revision 1.1.2.4 +16 -2 xml-fop/src/org/apache/fop/datatypes/Attic/PropertyValue.java Index: PropertyValue.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/PropertyValue.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- PropertyValue.java21 Sep 2002 04:13:23 - 1.1.2.3 +++ PropertyValue.java2 Oct 2002 07:00:08 - 1.1.2.4 @@ -1,6 +1,7 @@ package org.apache.fop.datatypes; import org.apache.fop.fo.expr.PropertyException; +import org.apache.fop.fo.FONode; /* * PropertyValue.java @@ -59,9 +60,22 @@ public void setProperty(int index) throws PropertyException; /** + * Get the ttint/tt type of property value. * @return type field of the ttPropertyValue/tt. */ public int getType(); + +/** + * Set the reference to the ttFONode/tt that stacked this value. + * @param node - the stacking tt.FONode/tt. + */ +public void setStackedBy(FONode node); + +/** + * Get a reference to the ttFONode/tt that stacked this value. + * @return ttFONode/tt that stacked this value. + */ +public FONode getStackedBy(); /** * In some circumstances, the property against which a type is to be 1.1.2.3 +23 -2 xml-fop/src/org/apache/fop/datatypes/Attic/PropertyValueList.java Index: PropertyValueList.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/datatypes/Attic/PropertyValueList.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- PropertyValueList.java18 Sep 2002 15:24:12 - 1.1.2.2 +++ PropertyValueList.java2 Oct 2002 07:00:08 - 1.1.2.3 @@ -7,6 +7,7 @@ import org.apache.fop.fo.Properties; import org.apache.fop.fo.PropertyConsts; import org.apache.fop.fo.PropNames; +import org.apache.fop.fo.FONode; import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.fo.expr.PropertyException; @@ -38,6 +39,11 @@ public final int type; /** + * The ttFONode/tt that stacked this value. + */ +private FONode stackedBy = null; + +/** * @param property ttint/tt index of the property. */ public PropertyValueList(int property) throws PropertyException { @@ -175,6 +181,21 @@ */ public int getType() { return type; +} + +/** + * Set the node that stacked this value. + * @param node - the ttFONode/tt that stacked this value. + */ +public void setStackedBy(FONode node) { +stackedBy = node; +} + +/** + * Get the node that stacked this value. + */ +public FONode getStackedBy() { +return stackedBy; } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo Properties.java
pbwest 2002/10/02 00:06:27 Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design Properties.java Log: Split ShorthandPropSets from PropertySets. Revision ChangesPath No revision No revision 1.1.2.29 +40 -38xml-fop/src/org/apache/fop/fo/Attic/Properties.java Index: Properties.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/Properties.java,v retrieving revision 1.1.2.28 retrieving revision 1.1.2.29 diff -u -r1.1.2.28 -r1.1.2.29 --- Properties.java 1 Oct 2002 16:30:33 - 1.1.2.28 +++ Properties.java 2 Oct 2002 07:06:25 - 1.1.2.29 @@ -23,6 +23,7 @@ import org.apache.fop.messaging.MessageHandler; import org.apache.fop.fo.PropertyConsts; +import org.apache.fop.fo.ShorthandPropSets; import org.apache.fop.fo.FOTree; import org.apache.fop.fo.FObjects; import org.apache.fop.datatypes.PropertyValue; @@ -425,7 +426,7 @@ default: if ( ! nested) { if ((datatype COMPOUND) != 0) -return PropertySets.expandCompoundProperty +return ShorthandPropSets.expandCompoundProperty (foNode.foTree, value); if (proptype == PropertyValue.INHERIT) { if ((datatype INHERIT) != 0) @@ -597,7 +598,7 @@ * a border-EDGE-width MappedNumeric or inheritance value * * N.B. this is the order of elements defined in - * PropertySets.borderRightExpansion + * ShorthandPropSets.borderRightExpansion */ protected static PropertyValue borderEdge(FONode foNode, PropertyValue value, int styleProp, int colorProp, int widthProp) @@ -635,7 +636,7 @@ { // Copy the value to each member of the shorthand expansion return refineExpansionList -(foNode, PropertySets.expandAndCopySHand(value)); +(foNode, ShorthandPropSets.expandAndCopySHand(value)); } } // Make a list and pass to processList @@ -1138,7 +1139,7 @@ { // Copy the value to each member of the shorthand expansion return refineExpansionList -(foNode, PropertySets.expandAndCopySHand(value)); +(foNode, ShorthandPropSets.expandAndCopySHand(value)); } else { // Make a list and pass to processList PropertyValueList tmpList @@ -1503,7 +1504,7 @@ type == PropertyValue.FROM_NEAREST_SPECIFIED) { // Copy the value to each member of the shorthand newlist = refineExpansionList -(foNode, PropertySets.expandAndCopySHand(value)); +(foNode, ShorthandPropSets.expandAndCopySHand(value)); } } @@ -1951,7 +1952,7 @@ type == PropertyValue.FROM_NEAREST_SPECIFIED) // Copy the value to each member of the shorthand expansion return refineExpansionList -(foNode, PropertySets.expandAndCopySHand(value)); +(foNode, ShorthandPropSets.expandAndCopySHand(value)); PropertyValueList ssList = null; // Must be a space-separated list or a single value from the @@ -2245,7 +2246,7 @@ * a border-EDGE-width MappedNumeric or inheritance value * * N.B. this is the order of elements defined in - * PropertySets.borderRightExpansion + * ShorthandPropSets.borderRightExpansion * * @param foNode - the ttFONode/tt being built * @param value ttPropertyValue/tt returned by the parser @@ -2397,12 +2398,12 @@ if (type == PropertyValue.INHERIT || type == PropertyValue.FROM_PARENT || type == PropertyValue.FROM_NEAREST_SPECIFIED) -return refineExpansionList -(foNode, PropertySets.expandAndCopySHand(value)); +return refineExpansionList(foNode, +ShorthandPropSets.expandAndCopySHand(value)); } if (type == PropertyValue.COLOR_TYPE) return refineExpansionList -(foNode, PropertySets.expandAndCopySHand(value)); +(foNode, ShorthandPropSets.expandAndCopySHand(value)); if (type == PropertyValue.NCNAME) {
cvs commit: xml-fop/src/org/apache/fop/fo FObjects.java
pbwest 2002/10/02 00:07:20 Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FObjects.java Log: Added getAttrSetName(). Revision ChangesPath No revision No revision 1.1.2.7 +23 -3 xml-fop/src/org/apache/fop/fo/Attic/FObjects.java Index: FObjects.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FObjects.java,v retrieving revision 1.1.2.6 retrieving revision 1.1.2.7 diff -u -r1.1.2.6 -r1.1.2.7 --- FObjects.java 2 Oct 2002 01:24:22 - 1.1.2.6 +++ FObjects.java 2 Oct 2002 07:07:19 - 1.1.2.7 @@ -58,6 +58,26 @@ ,LAST_SET = MARKER_SET ; +public static String getAttrSetName(int attrSet) throws FOPException { +switch (attrSet) { +case ROOT_SET: +return ROOT; +case DECLARATIONS_SET: +return DECLARATIONS; +case LAYOUT_SET: +return LAYOUT; +case PAGESEQ_SET: +return PAGESEQ; +case FLOW_SET: +return FLOW; +case STATIC_SET: +return STATIC; +case MARKER_SET: +return MARKER; +} +throw new FOPException(Invalid attribute set: + attrSet); +} + public static ROBitSet getAttrROBitSet(int attrSet) throws FOPException { - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo FONode.java
pbwest 2002/10/02 00:08:26 Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FONode.java Log: Ignore properties not in attribute set for this node. Revision ChangesPath No revision No revision 1.19.2.11 +31 -10xml-fop/src/org/apache/fop/fo/FONode.java Index: FONode.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FONode.java,v retrieving revision 1.19.2.10 retrieving revision 1.19.2.11 diff -u -r1.19.2.10 -r1.19.2.11 --- FONode.java 1 Oct 2002 16:40:23 - 1.19.2.10 +++ FONode.java 2 Oct 2002 07:08:26 - 1.19.2.11 @@ -15,6 +15,7 @@ import org.apache.fop.xml.XMLEvent; import org.apache.fop.xml.SyncedXmlEventsBuffer; import org.apache.fop.xml.XMLNamespaces; +import org.apache.fop.messaging.MessageHandler; import org.xml.sax.Attributes; @@ -99,6 +100,7 @@ this.parent = parent; this.event = event; this.attrSet = attrSet; +nodeAttrBitSet = FObjects.getAttrROBitSet(attrSet); xmlevents = foTree.xmlevents; namespaces = xmlevents.getNamespaces(); exprParser = foTree.exprParser; @@ -109,7 +111,7 @@ } } -private void processAttributes() throws PropertyException { +private void processAttributes() throws FOPException, PropertyException { // Process the FOAttributes - parse and stack the values // Build a HashMap of the properties defined on this node foProperties = foAttributes.getFoAttrMap(); @@ -120,23 +122,42 @@ for (int propx = 0; propx numAttrs; propx++) { PropertyValue props; int type; +int property; int prop = foKeys[propx].intValue(); String attrValue = foAttributes.getFoAttrValue(prop); props = handleAttrValue(prop, attrValue); type = props.getType(); if (type != PropertyValue.LIST) { -stackValue(props); -// Handle corresponding properties here -// Update the propertySet -propertySet[props.getProperty()] = props; +property = props.getProperty(); +if ( ! nodeAttrBitSet.get(property)) { +MessageHandler.log(Ignoring property + + PropNames.getPropertyName(property) + + for attribute set + + FObjects.getAttrSetName(attrSet) + + .); +} else { +stackValue(props); +// Handle corresponding properties here +// Update the propertySet +propertySet[props.getProperty()] = props; +} } else { // a list PropertyValue value; Iterator propvals = ((PropertyValueList)props).iterator(); while (propvals.hasNext()) { value = (PropertyValue)(propvals.next()); -stackValue(value); -// Handle corresponding properties here -propertySet[value.getProperty()] = value; +property = value.getProperty(); +if ( ! nodeAttrBitSet.get(property)) { +MessageHandler.log(Ignoring property + + PropNames.getPropertyName(property) + + for attribute set + + FObjects.getAttrSetName(attrSet) + + .); +} else { +stackValue(value); +// Handle corresponding properties here +propertySet[value.getProperty()] = value; +} } } } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo/expr SystemFontFunction.java
pbwest 2002/10/02 00:10:37 Modified:src/org/apache/fop/fo/expr Tag: FOP_0-20-0_Alt-Design SystemFontFunction.java Log: Split ShorthandPropSets from PropertySets. Revision ChangesPath No revision No revision 1.1.2.5 +7 -7 xml-fop/src/org/apache/fop/fo/expr/Attic/SystemFontFunction.java Index: SystemFontFunction.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/expr/Attic/SystemFontFunction.java,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -r1.1.2.4 -r1.1.2.5 --- SystemFontFunction.java 18 Sep 2002 15:35:03 - 1.1.2.4 +++ SystemFontFunction.java 2 Oct 2002 07:10:37 - 1.1.2.5 @@ -9,7 +9,7 @@ import org.apache.fop.fo.Properties.Font; import org.apache.fop.fo.PropNames; -import org.apache.fop.fo.PropertySets; +import org.apache.fop.fo.ShorthandPropSets; import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.FunctionNotImplementedException; import org.apache.fop.datastructs.ROIntArray; @@ -29,7 +29,7 @@ * Return the ttPropertyValue/tt appropriate to the emproperty/em * of the argument. emproperty/em must be one of the font * characteristic properties in the expansion set of the emfont/em - * shorthand property; emPropertySets.fontExpansion/em. + * shorthand property; emShorthandPropSets.fontExpansion/em. * @param property ttint/tt index of the font characteristic property * to be returned. * @param font ttString/tt name of the system font @@ -50,7 +50,7 @@ * font characteristic, named by empropName/em, defined on the * system font named by emfont/em. empropName/em must be one of * characteristic properties in the expansion set of the emfont/em - * shorthand property; emPropertySets.fontExpansion/em. + * shorthand property; emShorthandPropSets.fontExpansion/em. * @param property ttint/tt index of the property for the * ttPropertyValue/tt to be returned. * @param font ttString/tt name of the system font @@ -88,7 +88,7 @@ { // Get the array of indices of the properties in the // expansion of this shorthand -ROIntArray expansion = PropertySets.fontExpansion; +ROIntArray expansion = ShorthandPropSets.fontExpansion; PropertyValueList list = new PropertyValueList(property); for (int i = 0; i expansion.length; i++) { list.add(systemFontCharacteristic(expansion.get(i), font)); - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo/expr DataTypeNotImplementedException.java FunctionNotImplementedException.java PropertyNotImplementedException.java
pbwest 2002/10/02 00:12:29 Modified:src/org/apache/fop/fo/expr Tag: FOP_0-20-0_Alt-Design DataTypeNotImplementedException.java FunctionNotImplementedException.java PropertyNotImplementedException.java Log: Added constructor with Throwable. Revision ChangesPath No revision No revision 1.1.2.3 +6 -2 xml-fop/src/org/apache/fop/fo/expr/Attic/DataTypeNotImplementedException.java Index: DataTypeNotImplementedException.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/expr/Attic/DataTypeNotImplementedException.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- DataTypeNotImplementedException.java 25 Jun 2002 13:37:32 - 1.1.2.2 +++ DataTypeNotImplementedException.java 2 Oct 2002 07:12:28 - 1.1.2.3 @@ -15,4 +15,8 @@ super(detail); } +public DataTypeNotImplementedException(Throwable e) { +super(e); +} + } 1.1.2.3 +6 -2 xml-fop/src/org/apache/fop/fo/expr/Attic/FunctionNotImplementedException.java Index: FunctionNotImplementedException.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/expr/Attic/FunctionNotImplementedException.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- FunctionNotImplementedException.java 25 Jun 2002 13:37:32 - 1.1.2.2 +++ FunctionNotImplementedException.java 2 Oct 2002 07:12:28 - 1.1.2.3 @@ -15,4 +15,8 @@ super(detail); } +public FunctionNotImplementedException(Throwable e) { +super(e); +} + } 1.1.2.4 +6 -2 xml-fop/src/org/apache/fop/fo/expr/Attic/PropertyNotImplementedException.java Index: PropertyNotImplementedException.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/expr/Attic/PropertyNotImplementedException.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- PropertyNotImplementedException.java 2 Jul 2002 17:00:22 - 1.1.2.3 +++ PropertyNotImplementedException.java 2 Oct 2002 07:12:28 - 1.1.2.4 @@ -15,4 +15,8 @@ super(detail); } +public PropertyNotImplementedException(Throwable e) { +super(e); +} + } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo/expr PropertyTokenizer.java
pbwest 2002/10/02 00:19:59 Modified:src/org/apache/fop/fo/expr Tag: FOP_0-20-0_Alt-Design PropertyTokenizer.java Log: Fixed bug in numeric unit handling. Revision ChangesPath No revision No revision 1.4.4.4 +31 -22xml-fop/src/org/apache/fop/fo/expr/PropertyTokenizer.java Index: PropertyTokenizer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/expr/PropertyTokenizer.java,v retrieving revision 1.4.4.3 retrieving revision 1.4.4.4 diff -u -r1.4.4.3 -r1.4.4.4 --- PropertyTokenizer.java4 Jul 2002 00:59:40 - 1.4.4.3 +++ PropertyTokenizer.java2 Oct 2002 07:19:59 - 1.4.4.4 @@ -72,8 +72,9 @@ */ int currentToken = EOF; String currentTokenValue = null; -protected int currentUnitLength = 0; +protected int currentUnitIndex = 0; protected int currentUnit; +protected String unitString; protected String uri; private int currentTokenStartIndex = 0; @@ -96,6 +97,7 @@ expr = s; exprLength = s.length(); this.property = property; +//System.out.println(-Tokenizer initialized: + expr); } /** @@ -109,6 +111,15 @@ currentToken = EOF; currentTokenValue = null; property = 0; +//System.out.println(-Tokenizer reset.); +} + +/** + * Get the current expression + * @return - the expression. + */ +public String getExpr() { +return expr; } /** @@ -194,12 +205,11 @@ } } else bSawDecimal = false; +currentUnitIndex = exprIndex; if (exprIndex exprLength expr.charAt(exprIndex) == '%') { currentToken = PERCENT; -currentTokenValue = expr.substring(currentTokenStartIndex, - exprIndex); +unitString = %; exprIndex++; -return; } else { // Check for possible unit name following number currentToken = scanUnitName(); @@ -207,7 +217,7 @@ currentToken = bSawDecimal ? FLOAT : INTEGER; } currentTokenValue = expr.substring(currentTokenStartIndex, - exprIndex); + currentUnitIndex); return; case '.': @@ -343,49 +353,48 @@ * @exception PropertyException if an NCName not a UnitName recognized. */ private int scanUnitName() throws PropertyException { -String unit; -currentUnitLength = exprIndex; +currentUnitIndex = exprIndex; scanName(); -if ((currentUnitLength = exprIndex - currentUnitLength) 0) { -unit = expr.substring(currentUnitLength, exprIndex); -if (unit.equals(em)) return RELATIVE_LENGTH; -if (unit.equals(cm)) { +if (currentUnitIndex exprIndex) { +unitString = expr.substring(currentUnitIndex, exprIndex); +if (unitString.equals(em)) return RELATIVE_LENGTH; +if (unitString.equals(cm)) { currentUnit = Length.CM; return ABSOLUTE_LENGTH; } -if (unit.equals(mm)) { +if (unitString.equals(mm)) { currentUnit = Length.MM; return ABSOLUTE_LENGTH; } -if (unit.equals(in)) { +if (unitString.equals(in)) { currentUnit = Length.IN; return ABSOLUTE_LENGTH; } -if (unit.equals(pt)) { +if (unitString.equals(pt)) { currentUnit = Length.PT; return ABSOLUTE_LENGTH; } -if (unit.equals(pc)) { +if (unitString.equals(pc)) { currentUnit = Length.PC; return ABSOLUTE_LENGTH; } -if (unit.equals(px)) { +if (unitString.equals(px)) { currentUnit = Length.PX; return ABSOLUTE_LENGTH; } -if (unit.equals(s)) { +if (unitString.equals(s)) { currentUnit = Time.SEC; return TIME; } -if (unit.equals(ms)) { +if (unitString.equals(ms)) { currentUnit = Time.MSEC; return TIME; } -if (unit.equals(Hz)) {
cvs commit: xml-fop/src/org/apache/fop/fo/expr PropertyParser.java
pbwest 2002/10/02 00:23:18 Modified:src/org/apache/fop/fo/expr Tag: FOP_0-20-0_Alt-Design PropertyParser.java Log: Add explicit reset()s. Add InheritedValue handling. Access tokenizer expr value via method call. Revision ChangesPath No revision No revision 1.5.2.12 +32 -17xml-fop/src/org/apache/fop/fo/expr/PropertyParser.java Index: PropertyParser.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/expr/PropertyParser.java,v retrieving revision 1.5.2.11 retrieving revision 1.5.2.12 diff -u -r1.5.2.11 -r1.5.2.12 --- PropertyParser.java 24 Sep 2002 05:26:42 - 1.5.2.11 +++ PropertyParser.java 2 Oct 2002 07:23:18 - 1.5.2.12 @@ -127,11 +127,13 @@ public PropertyValue parse(FONode node, int property, String expr) throws PropertyException { +//System.out.println(-Entering parse: +// + PropNames.getPropertyName(property) + + expr); synchronized (this) { // make sure this parser is available -if (expr != null) // the parser is currently active +if (getExpr() != null) // the parser is currently active throw new PropertyException -(PropertyParser is currently active.); +(PropertyParser is currently active: + getExpr()); initialize(property, expr); this.node = node; } @@ -149,8 +151,10 @@ // end of the expression - add to list and go if (propList.size() != 0) { propList.add(prop); +reset(); return propList; } else { // list is empty +reset(); return prop; } } @@ -164,8 +168,10 @@ propList.add(prop); } else { // whitespace separates list elements; make a sublist propList.add(parseSublist(prop)); -if (currentToken == EOF) +if (currentToken == EOF) { +reset(); return propList; +} } } } @@ -489,29 +495,38 @@ } // Property value functions +if (currentTokenValue.equals(label-end)) { +PropertyValue[] args = parseArgs(0); +throw new FunctionNotImplementedException(label-end); +//break; +} +if (currentTokenValue.equals(body-start)) { +PropertyValue[] args = parseArgs(0); +throw new FunctionNotImplementedException(body-start); +//break; +} if (currentTokenValue.equals(inherited-property-value)) { int propindex = property; PropertyValue[] args = parseArgs(0, 1); if (args.length != 0) propindex = PropertyConsts.getPropertyIndex( ((StringType)args[0]).getString()); -if (PropertyConsts.inheritance(propindex) == Properties.NO) + +// If it's a compound, return an InheritedValue object +if (PropertyConsts.isCompound(propindex)) { +prop = new InheritedValue(property, propindex); +break; +} +// Is it an inherited property? +if (PropertyConsts.inheritance(propindex) +== Properties.NO) throw new PropertyException (inherited-property-value: + PropNames.getPropertyName(propindex) + is not inherited.); -prop = new InheritedValue(property, propindex); +// Not a compound, and inherited - try to resolve it +prop = node.fromParent(property, propindex); break; -} -if (currentTokenValue.equals(label-end)) { -PropertyValue[] args = parseArgs(0); -throw new FunctionNotImplementedException(label-end); -//break; -} -if (currentTokenValue.equals(body-start)) { -PropertyValue[] args = parseArgs(0); -throw new FunctionNotImplementedException(body-start); -//break;
cvs commit: xml-fop/src/org/apache/fop/fo/pagination FoSimplePageMaster.java
pbwest 2002/10/02 00:26:01 Modified:src/org/apache/fop/fo/pagination Tag: FOP_0-20-0_Alt-Design FoSimplePageMaster.java Log: Access master-name through propertySets. Revision ChangesPath No revision No revision 1.1.2.4 +12 -7 xml-fop/src/org/apache/fop/fo/pagination/Attic/FoSimplePageMaster.java Index: FoSimplePageMaster.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/Attic/FoSimplePageMaster.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- FoSimplePageMaster.java 2 Oct 2002 01:30:59 - 1.1.2.3 +++ FoSimplePageMaster.java 2 Oct 2002 07:26:01 - 1.1.2.4 @@ -11,6 +11,7 @@ // FOP import org.apache.fop.fo.FOAttributes; +import org.apache.fop.fo.PropNames; import org.apache.fop.xml.XMLEvent; import org.apache.fop.apps.FOPException; import org.apache.fop.fo.FObjects; @@ -19,6 +20,8 @@ import org.apache.fop.fo.FOTree; import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.datastructs.Tree; +import org.apache.fop.datatypes.PropertyValue; +import org.apache.fop.datatypes.NCName; /** * Implements the fo:simple-page-master flow object @@ -42,11 +45,13 @@ super(foTree, FObjectNames.SIMPLE_PAGE_MASTER, parent, event, FObjects.LAYOUT_SET); System.out.println(FOAttributes: + event); -try { -masterName = foAttributes.getFoAttrValue(master-name); -} catch (PropertyException e) { -throw new FOPException(e.getMessage()); -} +// Check that the property has been set +PropertyValue name = propertySet[PropNames.MASTER_NAME]; +if (name == null) +throw new PropertyException(master-name property not set); +if (name.getType() != PropertyValue.NCNAME) +throw new PropertyException(master-name property not an NCName.); +masterName = ((NCName)name).getNCName(); // Process regions here XMLEvent ev = xmlevents.getEndElement(event); } - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Antwort: fo wysiwig editor
You might also want to take a look at Scriptura from Inventive Designers (http://www.inventivedesigners.com/scriptura) In short... it's a GUI designer for XSL-FO documents. You can merge XML or JDBC data, add barcodes, use conditions, etc... It's focused on report generation, but you can also use it without specifying data to generate static pages. It's a commercial product but there's a free trial available. Disclaimer: I work for Inventive Designers ;-) - Erik Vanherck - System Programmer Designer Inventive Designers Visit http://www.inventivedesigners.com Visit http://www.iserieslinux.com for Linux on iSeries information ! Phone: +32 - 3 - 8210170 Fax: +32 - 3 - 8210171 Email: [EMAIL PROTECTED] Computers in the future may weigh no more than 1.5 tons. - Popular Mechanics, forecasting the relentless march of science, 1949 |+--- || [EMAIL PROTECTED]| || eln.mpg.de | || | || 09/30/2002 02:05 | || PM | || Please respond to| || fop-dev | || | |+--- ---| | | | To: [EMAIL PROTECTED] | | cc: | | Subject: Re: Antwort: fo wysiwig editor | ---| Hi, I checked out XSLfast. It's a nice start. But not advanced enough for professional print in my opinion. Marc - Original Message - From: Oleg Tkachenko [EMAIL PROTECTED] Date: Monday, September 30, 2002 12:50 pm Subject: Re: Antwort: fo wysiwig editor [EMAIL PROTECTED] wrote: Exactly, i wasnt intending to suggest that you guys pick this work up. But this forum seems the best to maybe chat about it and even spin another group off. Plus there is lots of expertise out there and I may have missed a piece of software. btw, guys from jCatalog, which actually developed fop's awt viewer ended up with xslfast, see http://www.jcatalog.com/products/xslfast/index.htm. I cherish a hope *someday* our clumsy awt viewer will grow into a full-fledged xsl editor :) -- Oleg Tkachenko Multiconn International, Israel --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Displaying Contents on the same line.
Hi all, I have to display two phrases on either side of the same line. like This is at the start This is at the end how can i do that??? thanks in advance for te help regards Balajee Chandrasekaran MASTEK Investing in relationships In the US, we're called MAJESCO ~~ Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers. ~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Displaying Contents on the same line.
You could use a table with 2 columns. In the first column, set the text alignment to left, in the second column, set the text alignment to right. Sometimes life can be easy ;-) - Original Message - From: Balajee Chandrasekaran [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 11:40 AM Subject: Displaying Contents on the same line. Hi all, I have to display two phrases on either side of the same line. like This is at the start This is at the end how can i do that??? thanks in advance for te help regards Balajee Chandrasekaran MASTEK Investing in relationships In the US, we're called MAJESCO ~~ Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers. ~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Displaying Contents on the same line.
Hi Guy, Thanks it worked. regards Balajee Chandrasekaran -Original Message- From: Guy D'haenens [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 02, 2002 3:22 PM To: [EMAIL PROTECTED] Subject: Re: Displaying Contents on the same line. You could use a table with 2 columns. In the first column, set the text alignment to left, in the second column, set the text alignment to right. Sometimes life can be easy ;-) - Original Message - From: Balajee Chandrasekaran [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 02, 2002 11:40 AM Subject: Displaying Contents on the same line. Hi all, I have to display two phrases on either side of the same line. like This is at the start This is at the end how can i do that??? thanks in advance for te help regards Balajee Chandrasekaran MASTEK Investing in relationships In the US, we're called MAJESCO ~~ Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers. ~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Text at th end of a page.
Hi, I want to display a paragraph at the bottom of a page. I have defined my page footer. The paragraph that I want to display is not a part of the page footer, but i want it to be placed always at the bottom of the page, even if the page is blank. thanks in advance regards Balajee Chandrasekaran MASTEK Investing in relationships In the US, we're called MAJESCO ~~ Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers. ~~ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Properties of PDF Documents
i'm looking for information about the following: - is the any way in securing a pdf document. to prohibit that a user selects and copies the text? - can the printer be selected from the pdf document? thanks __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Properties of PDF Documents
Ing. Atilio Ranzuglia Buteler wrote: i'm looking for information about the following: - is the any way in securing a pdf document. to prohibit that a user selects and copies the text? - can the printer be selected from the pdf document? I doubt this has something to do with fop, look for info about pdf format at planetpdf.com, for example. -- Oleg Tkachenko Multiconn International, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Properties of PDF Documents
the thing is that i'm producing the pdf document with fop, otherwise i'll be looking for information about the pdf specification --- Oleg Tkachenko [EMAIL PROTECTED] wrote: Ing. Atilio Ranzuglia Buteler wrote: i'm looking for information about the following: - is the any way in securing a pdf document. to prohibit that a user selects and copies the text? - can the printer be selected from the pdf document? I doubt this has something to do with fop, look for info about pdf format at planetpdf.com, for example. -- Oleg Tkachenko Multiconn International, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] __ Do you Yahoo!? New DSL Internet Access from SBC Yahoo! http://sbc.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Properties of PDF Documents
Ing. Atilio Ranzuglia Buteler wrote: the thing is that i'm producing the pdf document with fop, otherwise i'll be looking for information about the pdf specification fop cannot accomplish what you want, but you can postprocess generated pdf by some pdf-oriented library (iText is the most mentioned), see PDF encryption example by J.Pietschmann at http://marc.theaimsgroup.com/?l=fop-devm=102002975028427w=2. -- Oleg Tkachenko Multiconn International, Israel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Antwort: fo wysiwig editor
Guys, That goes for me as well. I would like to get in. Mark - Original Message - From: Vaidya, Raghavendra (CORP, GEITC) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, October 01, 2002 12:43 AM Subject: RE: Antwort: fo wysiwig editor Guys, I am one of the users of FOP for a very long time. I would like to get involved in this project as developer, if you guys start it regards Vaidya -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 8:39 PM To: [EMAIL PROTECTED] Subject: Re: Antwort: fo wysiwig editor Hi everybody, this discussion is getting too esoteric. I am willing to put effort into a new project as I have stated before. It basically depends on if we are able to gather a strong enough team. However, I think we should soon move the discussion somewhere else rather than polluting fop-dev. Any suggestions? Interested? Marc - Original Message - From: Mark Bitz [EMAIL PROTECTED] Date: Monday, September 30, 2002 4:39 pm Subject: Re: Antwort: fo wysiwig editor Hi, I agree with Marc. It's not robust enough and combersome to figure out. Mark - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 30, 2002 8:05 AM Subject: Re: Antwort: fo wysiwig editor Hi, I checked out XSLfast. It's a nice start. But not advanced enough for professional print in my opinion. Marc - Original Message - From: Oleg Tkachenko [EMAIL PROTECTED] Date: Monday, September 30, 2002 12:50 pm Subject: Re: Antwort: fo wysiwig editor [EMAIL PROTECTED] wrote: Exactly, i wasnt intending to suggest that you guys pick this work up. But this forum seems the best to maybe chat about it and even spin another group off. Plus there is lots of expertise out there and I may have missed a piece of software. btw, guys from jCatalog, which actually developed fop's awt viewer ended up with xslfast, see http://www.jcatalog.com/products/xslfast/index.htm. I cherish a hope *someday* our clumsy awt viewer will grow into a full-fledged xsl editor :) -- Oleg Tkachenko Multiconn International, Israel --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] --- -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] THIS E-MAIL MESSAGE ALONG WITH ANY ATTACHMENTS IS INTENDED ONLY FOR THE ADDRESSEE and may contain confidential and privileged information. If the reader of this message is not the intended recipient, you are notified that any dissemination, distribution or copy of this communication is strictly Prohibited. If you have received this message by error, please notify us immediately, return the original mail to the sender and delete the message from your system. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: AW: large tables loop problem
Title: Nachricht Hello, i don't know how to view my xslt result. i am working on a project , where all the data of the software can be saved to xml... now i want to create a pdf report file out of the xml data, and i only provide and xsl file with FO tags. so i have written a java class with the following code: { //create XML Tree with project data Document doc = DocumentFactory.getInstance().createDocument();YpiXML ypiXML = new YpiXML(projekt); ypiXML.setFile(outFile); ypiXML.saveProjektDaten(doc, true); OutputStream xmlstream = new ByteArrayOutputStream();ByteArrayInputStream istream = null;String s = "";OutputFormat outFormat = new OutputFormat();outFormat.setEncoding("windows-1252");XMLWriter writer = new XMLWriter(xmlstream,outFormat);writer.write(doc);writer.flush();s = xmlstream.toString();stream = new ByteArrayInputStream(s.getBytes());String stemp = istream.toString();istream.close();Source strSource = new StreamSource(new StringReader(s));TransformerFactory transformerFactory = TransformerFactory.newInstance ();Templates template = transformerFactory.newTemplates(new StreamSource(xslFile));Transformer transformer = template.newTransformer();Driver driver = new Driver();driver.setRenderer(driver.RENDER_PDF);FileOutputStream fo = new FileOutputStream(outFile);driver.setOutputStream(fo);Result saxResult = new SAXResult( driver.getContentHandler() );transformer.transform( strSource, saxResult ); driver.reset();fo.flush();fo.close();} This works very well, i only have to provide an xsl File that contains the information, which data of the xml file should be shown in the pdf. when a table larger than one pdf (A4) page has to be created, the endless loop appears. otherwise it runs with no problem... As i am really new to FOP, any hints are welcome, regards, T. Kuhn -Ursprüngliche Nachricht-Von: J.Pietschmann [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 30. September 2002 21:53An: [EMAIL PROTECTED]Betreff: Re: AW: large tables loop problem Tobias Kuhn wrote: This is the part of the code creating the tables which will not fit in one page in some cases... I can't reproduce the problem. Posting snippets form the XSLT is unwise, you should post the result of the XSL transformation, after trimming it to the part which actually demonstrates the problem, and perhaps anonymizing company data. I guess you'll spot the problem yourself when looking at the XSLT result. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: large tables loop problem
Title: Nachricht Run your XML file and XSL file through the XT program found here: http://www.blnz.com/xt/index.html This should give you an XSLT result. The resulting information should be a purely FO document so that any of us could immediately run it in FOP and see what's what. -Original Message-From: Tobias Kuhn [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 02, 2002 9:54 AMTo: [EMAIL PROTECTED]Subject: AW: large tables loop problem Hello, i don't know how to view my xslt result. i am working on a project , where all the data of the software can be saved to xml... now i want to create a pdf report file out of the xml data, and i only provide and xsl file with FO tags. so i have written a java class with the following code: { //create XML Tree with project data Document doc = DocumentFactory.getInstance().createDocument();YpiXML ypiXML = new YpiXML(projekt); ypiXML.setFile(outFile); ypiXML.saveProjektDaten(doc, true); OutputStream xmlstream = new ByteArrayOutputStream();ByteArrayInputStream istream = null;String s = "";OutputFormat outFormat = new OutputFormat();outFormat.setEncoding("windows-1252");XMLWriter writer = new XMLWriter(xmlstream,outFormat);writer.write(doc);writer.flush();s = xmlstream.toString();stream = new ByteArrayInputStream(s.getBytes());String stemp = istream.toString();istream.close();Source strSource = new StreamSource(new StringReader(s));TransformerFactory transformerFactory = TransformerFactory.newInstance ();Templates template = transformerFactory.newTemplates(new StreamSource(xslFile));Transformer transformer = template.newTransformer();Driver driver = new Driver();driver.setRenderer(driver.RENDER_PDF);FileOutputStream fo = new FileOutputStream(outFile);driver.setOutputStream(fo);Result saxResult = new SAXResult( driver.getContentHandler() );transformer.transform( strSource, saxResult ); driver.reset();fo.flush();fo.close();} This works very well, i only have to provide an xsl File that contains the information, which data of the xml file should be shown in the pdf. when a table larger than one pdf (A4) page has to be created, the endless loop appears. otherwise it runs with no problem... As i am really new to FOP, any hints are welcome, regards, T. Kuhn -Ursprüngliche Nachricht-Von: J.Pietschmann [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 30. September 2002 21:53An: [EMAIL PROTECTED]Betreff: Re: AW: large tables loop problem Tobias Kuhn wrote: This is the part of the code creating the tables which will not fit in one page in some cases... I can't reproduce the problem. Posting snippets form the XSLT is unwise, you should post the result of the XSL transformation, after trimming it to the part which actually demonstrates the problem, and perhaps anonymizing company data. I guess you'll spot the problem yourself when looking at the XSLT result. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: large tables loop problem
Title: Nachricht this program does't seem to work for me, i always get an error "character not allowed"... -Ursprüngliche Nachricht-Von: Rhett Aultman [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 2. Oktober 2002 15:59An: [EMAIL PROTECTED]Betreff: RE: large tables loop problem Run your XML file and XSL file through the XT program found here: http://www.blnz.com/xt/index.html This should give you an XSLT result. The resulting information should be a purely FO document so that any of us could immediately run it in FOP and see what's what. -Original Message-From: Tobias Kuhn [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 02, 2002 9:54 AMTo: [EMAIL PROTECTED]Subject: AW: large tables loop problem Hello, i don't know how to view my xslt result. i am working on a project , where all the data of the software can be saved to xml... now i want to create a pdf report file out of the xml data, and i only provide and xsl file with FO tags. so i have written a java class with the following code: { //create XML Tree with project data Document doc = DocumentFactory.getInstance().createDocument();YpiXML ypiXML = new YpiXML(projekt); ypiXML.setFile(outFile); ypiXML.saveProjektDaten(doc, true); OutputStream xmlstream = new ByteArrayOutputStream();ByteArrayInputStream istream = null;String s = "";OutputFormat outFormat = new OutputFormat();outFormat.setEncoding("windows-1252");XMLWriter writer = new XMLWriter(xmlstream,outFormat);writer.write(doc);writer.flush();s = xmlstream.toString();stream = new ByteArrayInputStream(s.getBytes());String stemp = istream.toString();istream.close();Source strSource = new StreamSource(new StringReader(s));TransformerFactory transformerFactory = TransformerFactory.newInstance ();Templates template = transformerFactory.newTemplates(new StreamSource(xslFile));Transformer transformer = template.newTransformer();Driver driver = new Driver();driver.setRenderer(driver.RENDER_PDF);FileOutputStream fo = new FileOutputStream(outFile);driver.setOutputStream(fo);Result saxResult = new SAXResult( driver.getContentHandler() );transformer.transform( strSource, saxResult ); driver.reset();fo.flush();fo.close();} This works very well, i only have to provide an xsl File that contains the information, which data of the xml file should be shown in the pdf. when a table larger than one pdf (A4) page has to be created, the endless loop appears. otherwise it runs with no problem... As i am really new to FOP, any hints are welcome, regards, T. Kuhn -Ursprüngliche Nachricht-Von: J.Pietschmann [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 30. September 2002 21:53An: [EMAIL PROTECTED]Betreff: Re: AW: large tables loop problem Tobias Kuhn wrote: This is the part of the code creating the tables which will not fit in one page in some cases... I can't reproduce the problem. Posting snippets form the XSLT is unwise, you should post the result of the XSL transformation, after trimming it to the part which actually demonstrates the problem, and perhaps anonymizing company data. I guess you'll spot the problem yourself when looking at the XSLT result. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: large tables loop problem
Title: Nachricht You may have syntax in one of your two files that it doesn't like. You'll have to work with it and get it to work for you. Last I used XT, it at least listed the line number of the "bad character" so it shouldn't be too hard for you to figure out. When in doubt, read the documentation and/or email the author. I cannot give you tech support for XT. Or try a different XSLT engine. Here's a list of them: http://www.xslt.com/xslt_tools_engines.htm -Original Message-From: Tobias Kuhn [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 02, 2002 10:26 AMTo: [EMAIL PROTECTED]Subject: AW: large tables loop problem this program does't seem to work for me, i always get an error "character not allowed"... -Ursprüngliche Nachricht-Von: Rhett Aultman [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 2. Oktober 2002 15:59An: [EMAIL PROTECTED]Betreff: RE: large tables loop problem Run your XML file and XSL file through the XT program found here: http://www.blnz.com/xt/index.html This should give you an XSLT result. The resulting information should be a purely FO document so that any of us could immediately run it in FOP and see what's what. -Original Message-From: Tobias Kuhn [mailto:[EMAIL PROTECTED]]Sent: Wednesday, October 02, 2002 9:54 AMTo: [EMAIL PROTECTED]Subject: AW: large tables loop problem Hello, i don't know how to view my xslt result. i am working on a project , where all the data of the software can be saved to xml... now i want to create a pdf report file out of the xml data, and i only provide and xsl file with FO tags. so i have written a java class with the following code: { //create XML Tree with project data Document doc = DocumentFactory.getInstance().createDocument();YpiXML ypiXML = new YpiXML(projekt); ypiXML.setFile(outFile); ypiXML.saveProjektDaten(doc, true); OutputStream xmlstream = new ByteArrayOutputStream();ByteArrayInputStream istream = null;String s = "";OutputFormat outFormat = new OutputFormat();outFormat.setEncoding("windows-1252");XMLWriter writer = new XMLWriter(xmlstream,outFormat);writer.write(doc);writer.flush();s = xmlstream.toString();stream = new ByteArrayInputStream(s.getBytes());String stemp = istream.toString();istream.close();Source strSource = new StreamSource(new StringReader(s));TransformerFactory transformerFactory = TransformerFactory.newInstance ();Templates template = transformerFactory.newTemplates(new StreamSource(xslFile));Transformer transformer = template.newTransformer();Driver driver = new Driver();driver.setRenderer(driver.RENDER_PDF);FileOutputStream fo = new FileOutputStream(outFile);driver.setOutputStream(fo);Result saxResult = new SAXResult( driver.getContentHandler() );transformer.transform( strSource, saxResult ); driver.reset();fo.flush();fo.close();} This works very well, i only have to provide an xsl File that contains the information, which data of the xml file should be shown in the pdf. when a table larger than one pdf (A4) page has to be created, the endless loop appears. otherwise it runs with no problem... As i am really new to FOP, any hints are welcome, regards, T. Kuhn -Ursprüngliche Nachricht-Von: J.Pietschmann [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 30. September 2002 21:53An: [EMAIL PROTECTED]Betreff: Re: AW: large tables loop problem Tobias Kuhn wrote: This is the part of the code creating the tables which will not fit in one page in some cases... I can't reproduce the problem. Posting snippets form the XSLT is unwise, you should post the result of the XSL transformation, after trimming it to the part which actually demonstrates the problem, and perhaps anonymizing company data. I guess you'll spot the problem yourself when looking at the XSLT result. J.Pietschmann - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
A survey about handling bugs in open source projects
Hello all FOP contributors, I am conducting a survey about the way defects (or bugs-I use these two words interchangeably) are handled in open source software projects. It is very easy to fill out. It consists of three short sections which can be completed at once or in different sessions. The survey can be found in the address: http://www.seas.smu.edu/~gkoru/surveys/dhsurvey.html This survey includes questions that can be answered by developers,testers, bug fixers, bug database owners, and project managers. I would greatly appreciate if you could visit the above web page and fill out the survey. I am sure you will find the questions very interesting and thought provoking. We need the help of all contributors of FOP in the above roles to understand how we can use bugs data collected in your project for software engineering research. Nowadays, there is a huge amount of bug data on the Internet collected during the development of all open source products. A bug database include useful information to identify high-risk, problem-prone modules (components) in the software. It is also possible to measure these problem-prone components using several complexity metrics (McCabe's cyclomatic complexity, Halstead's metrics, etc.), since the source code is available. If a characterization, which is generalizable across many projects (sub-projects) could be made in terms of complexity, focused quality improvement would become possible in the future projects. So far, in the literature, there is quite amount of evidence that 80 percent of the problems occur from 20 percent of the modules (or software components), which gives hope toward tremendous quality increase, time savings, and increased success in the open source projects. Also a bug database includes useful information about the efficiency of development. For example, if a lot of bugs related to design of the system are found after release, when coding bugs are expected more, then this may indicate that the design or architecture of the system was done cursory. Of course, these kinds of conclusions would require some kind of classification of bugs according to their insertion time after they get fixed. However, before trying to find an answer to the questions like above, our first step is to understand if the available data is usable for empirical research purposes. This means having an idea about the consistency of bug reports and fixes, accuracy of data, completeness of the data, etc. At this point, we need your help. By filling out this survey, you will help us understand availability, representativeness, and characteristics of the data in the bug database of your project. I'd like to stress that the purpose of this survey is only and only research. Open source development gained a very good momentum in the last decade. We hope that outcomes of our research will help even increase this momentum. We will acknowledge the help of all supporting communities when mentioning our results. In addition to these goals, we also think that filling out this short survey can lead to some immediate brain-storming in individuals and groups, and exchange of ideas among the FOP community, which will be useful too. As I said, you will find the survey questions interesting. If you'd prefer to learn more about our research, I included a link in the above web page of our survey. This link provides more information about our research. Once more, your contribution is very important to us. Please visit http://www.seas.smu.edu/~gkoru/surveys/dhsurvey.html and fill out our survey. We greatly appreciate your helps. Please contact me for any question you might have. Thanks -- *** A. Gunes Koru Research Assistant, Ph.D. Student Southern Methodist University Computer Science and Engineering Department 6425 North Ownby Drive Science and Information Building Room 317 Dallas, TX 75205 Home: 214 691 5633 Work: 214 768 2005 Cell: 214 893 7311 http://www.seas.smu.edu/~gkoru Email: [EMAIL PROTECTED] *** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo FONode.java FoRoot.java Properties.java
pbwest 2002/10/02 08:14:29 Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FONode.java FoRoot.java Properties.java Log: Moved FObjects to FOPropertySets. Revision ChangesPath No revision No revision 1.19.2.12 +8 -7 xml-fop/src/org/apache/fop/fo/FONode.java Index: FONode.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FONode.java,v retrieving revision 1.19.2.11 retrieving revision 1.19.2.12 diff -u -r1.19.2.11 -r1.19.2.12 --- FONode.java 2 Oct 2002 07:08:26 - 1.19.2.11 +++ FONode.java 2 Oct 2002 15:14:21 - 1.19.2.12 @@ -2,7 +2,7 @@ import org.apache.fop.fo.FOTree; import org.apache.fop.fo.FOAttributes; -import org.apache.fop.fo.FObjects; +import org.apache.fop.fo.FOPropertySets; import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyParser; import org.apache.fop.datatypes.PropertyValue; @@ -100,15 +100,16 @@ this.parent = parent; this.event = event; this.attrSet = attrSet; -nodeAttrBitSet = FObjects.getAttrROBitSet(attrSet); +nodeAttrBitSet = FOPropertySets.getAttrROBitSet(attrSet); xmlevents = foTree.xmlevents; namespaces = xmlevents.getNamespaces(); exprParser = foTree.exprParser; propertySet = new PropertyValue[PropNames.LAST_PROPERTY_INDEX + 1]; foAttributes = new FOAttributes(event, this); -if ( ! (attrSet == FObjects.MARKER_SET)) { +if ( ! (attrSet == FOPropertySets.MARKER_SET)) { processAttributes(); } +// Set up the remaining properties. } private void processAttributes() throws FOPException, PropertyException { @@ -133,7 +134,7 @@ MessageHandler.log(Ignoring property + PropNames.getPropertyName(property) + for attribute set - + FObjects.getAttrSetName(attrSet) + + FOPropertySets.getAttrSetName(attrSet) + .); } else { stackValue(props); @@ -151,7 +152,7 @@ MessageHandler.log(Ignoring property + PropNames.getPropertyName(property) + for attribute set - + FObjects.getAttrSetName(attrSet) + + FOPropertySets.getAttrSetName(attrSet) + .); } else { stackValue(value); 1.1.2.6 +5 -5 xml-fop/src/org/apache/fop/fo/Attic/FoRoot.java Index: FoRoot.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FoRoot.java,v retrieving revision 1.1.2.5 retrieving revision 1.1.2.6 diff -u -r1.1.2.5 -r1.1.2.6 --- FoRoot.java 2 Oct 2002 01:25:21 - 1.1.2.5 +++ FoRoot.java 2 Oct 2002 15:14:21 - 1.1.2.6 @@ -11,7 +11,7 @@ package org.apache.fop.fo; import org.apache.fop.apps.FOPException; -import org.apache.fop.fo.FObjects; +import org.apache.fop.fo.FOPropertySets; import org.apache.fop.fo.FObjectNames; import org.apache.fop.datastructs.Tree; import org.apache.fop.fo.FOTree; @@ -52,7 +52,7 @@ throws Tree.TreeException, FOPException, PropertyException { // This is the root node of the tree; hence the null argument -super(foTree, FObjectNames.ROOT, null, event, FObjects.ROOT_SET); +super(foTree, FObjectNames.ROOT, null, event, FOPropertySets.ROOT_SET); } /** 1.1.2.30 +4 -4 xml-fop/src/org/apache/fop/fo/Attic/Properties.java Index: Properties.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/Properties.java,v retrieving revision 1.1.2.29 retrieving revision 1.1.2.30 diff -u -r1.1.2.29 -r1.1.2.30 --- Properties.java 2 Oct 2002 07:06:25 - 1.1.2.29 +++ Properties.java 2 Oct 2002 15:14:21 - 1.1.2.30 @@ -25,7 +25,7 @@ import org.apache.fop.fo.PropertyConsts; import org.apache.fop.fo.ShorthandPropSets; import org.apache.fop.fo.FOTree; -import org.apache.fop.fo.FObjects; +import org.apache.fop.fo.FOPropertySets; import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.AbstractPropertyValue; import org.apache.fop.datatypes.PropertyValueList;
cvs commit: xml-fop/src/org/apache/fop/fo/pagination FoSimplePageMaster.java FoPageSequenceMaster.java FoLayoutMasterSet.java
pbwest 2002/10/02 08:19:59 Modified:src/org/apache/fop/fo/pagination Tag: FOP_0-20-0_Alt-Design FoSimplePageMaster.java FoPageSequenceMaster.java FoLayoutMasterSet.java Log: Moved FObjects to FOPropertySets. Revision ChangesPath No revision No revision 1.1.2.5 +4 -4 xml-fop/src/org/apache/fop/fo/pagination/Attic/FoSimplePageMaster.java Index: FoSimplePageMaster.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/Attic/FoSimplePageMaster.java,v retrieving revision 1.1.2.4 retrieving revision 1.1.2.5 diff -u -r1.1.2.4 -r1.1.2.5 --- FoSimplePageMaster.java 2 Oct 2002 07:26:01 - 1.1.2.4 +++ FoSimplePageMaster.java 2 Oct 2002 15:19:59 - 1.1.2.5 @@ -14,7 +14,7 @@ import org.apache.fop.fo.PropNames; import org.apache.fop.xml.XMLEvent; import org.apache.fop.apps.FOPException; -import org.apache.fop.fo.FObjects; +import org.apache.fop.fo.FOPropertySets; import org.apache.fop.fo.FObjectNames; import org.apache.fop.fo.FONode; import org.apache.fop.fo.FOTree; @@ -43,7 +43,7 @@ throws Tree.TreeException, FOPException, PropertyException { super(foTree, FObjectNames.SIMPLE_PAGE_MASTER, parent, event, - FObjects.LAYOUT_SET); + FOPropertySets.LAYOUT_SET); System.out.println(FOAttributes: + event); // Check that the property has been set PropertyValue name = propertySet[PropNames.MASTER_NAME]; 1.1.2.4 +5 -5 xml-fop/src/org/apache/fop/fo/pagination/Attic/FoPageSequenceMaster.java Index: FoPageSequenceMaster.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/Attic/FoPageSequenceMaster.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- FoPageSequenceMaster.java 2 Oct 2002 01:30:59 - 1.1.2.3 +++ FoPageSequenceMaster.java 2 Oct 2002 15:19:59 - 1.1.2.4 @@ -20,7 +20,7 @@ import org.apache.fop.apps.FOPException; import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.Properties; -import org.apache.fop.fo.FObjects; +import org.apache.fop.fo.FOPropertySets; import org.apache.fop.fo.FObjectNames; import org.apache.fop.fo.FOTree; import org.apache.fop.fo.FONode; @@ -47,7 +47,7 @@ throws Tree.TreeException, FOPException, PropertyException { super(foTree, FObjectNames.PAGE_SEQUENCE_MASTER, parent, null, - FObjects.LAYOUT_SET); + FOPropertySets.LAYOUT_SET); this.masterName = masterName; } @@ -55,7 +55,7 @@ throws Tree.TreeException, FOPException, PropertyException { super(foTree, FObjectNames.PAGE_SEQUENCE_MASTER, parent, event, - FObjects.LAYOUT_SET); + FOPropertySets.LAYOUT_SET); if (event == null) { System.out.println(Null event; throwing FOPException); throw new FOPException 1.1.2.4 +5 -5 xml-fop/src/org/apache/fop/fo/pagination/Attic/FoLayoutMasterSet.java Index: FoLayoutMasterSet.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/pagination/Attic/FoLayoutMasterSet.java,v retrieving revision 1.1.2.3 retrieving revision 1.1.2.4 diff -u -r1.1.2.3 -r1.1.2.4 --- FoLayoutMasterSet.java2 Oct 2002 01:30:59 - 1.1.2.3 +++ FoLayoutMasterSet.java2 Oct 2002 15:19:59 - 1.1.2.4 @@ -6,7 +6,7 @@ import org.apache.fop.apps.FOPException; import org.apache.fop.xml.XMLEvent; -import org.apache.fop.fo.FObjects; +import org.apache.fop.fo.FOPropertySets; import org.apache.fop.fo.FObjectNames; import org.apache.fop.fo.FOTree; import org.apache.fop.fo.FONode; @@ -62,7 +62,7 @@ throws Tree.TreeException, FOPException, PropertyException { super(foTree, FObjectNames.LAYOUT_MASTER_SET, parent, event, - FObjects.LAYOUT_SET); + FOPropertySets.LAYOUT_SET); } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DO NOT REPLY [Bug 3898] - fo:page-number-citation fails if id is in block with break-before=page
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3898. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3898 fo:page-number-citation fails if id is in block with break-before=page --- Additional Comments From [EMAIL PROTECTED] 2002-10-02 15:28 --- I have checked the workaround and it does not work. This bug doesn't depend on the break-before/after attribute. The problem seems to be (for me at least) that fo:page-number-citation does not output the last referenced page number (e.g.: in a TOC). Another workaround for this is to print a dummy fo:page-number-citation right after the last TOC-entry. It should have the same color as the background (appears to be the best solution for now). - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Text at th end of a page.
I want to display a paragraph at the bottom of a page. I have defined my page footer. The paragraph that I want to display is not a part of the page footer, but i want it to be placed always at the bottom of the page, even if the page is blank. Why cant you include the paragragh in the region after along with the footer? You can always have space-* attributes set to keep the bottom paragraph separate from your footer _ Chat with friends online, try MSN Messenger: http://messenger.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: FOP defect when rendering rotated grouped text and path objects
OK, thanks for your assessment. Now all I have to do is figure out how to use Bugzilla... This could be a bug in the PDF renderer. You'll have to wait for Keiron to reappear for comments. Perhaps you should open a bug in bugzilla. J.Pietschmann - 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/fo FOTree.java
pbwest 2002/10/02 20:13:32 Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FOTree.java Log: Removed PropertyTriplet import. Revision ChangesPath No revision No revision 1.1.2.14 +3 -4 xml-fop/src/org/apache/fop/fo/Attic/FOTree.java Index: FOTree.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/FOTree.java,v retrieving revision 1.1.2.13 retrieving revision 1.1.2.14 diff -u -r1.1.2.13 -r1.1.2.14 --- FOTree.java 2 Oct 2002 01:17:14 - 1.1.2.13 +++ FOTree.java 3 Oct 2002 03:13:32 - 1.1.2.14 @@ -3,6 +3,7 @@ import org.apache.fop.datastructs.Tree; import org.apache.fop.datatypes.Ints; import org.apache.fop.datatypes.Numeric; +import org.apache.fop.datatypes.PropertyValue; import org.apache.fop.datatypes.indirect.Inherit; import org.apache.fop.datatypes.Auto; import org.apache.fop.datatypes.None; @@ -16,8 +17,6 @@ import org.apache.fop.fo.Properties; import org.apache.fop.fo.PropertyConsts; import org.apache.fop.fo.PropNames; -import org.apache.fop.datatypes.PropertyValue; -import org.apache.fop.datatypes.PropertyTriplet; import org.apache.fop.fo.expr.PropertyException; import org.apache.fop.fo.expr.PropertyParser; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo PropertyConsts.java
pbwest 2002/10/02 20:14:29 Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design PropertyConsts.java Log: Removed getNonInheritedSet() method. Revision ChangesPath No revision No revision 1.1.2.13 +3 -11 xml-fop/src/org/apache/fop/fo/Attic/PropertyConsts.java Index: PropertyConsts.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/PropertyConsts.java,v retrieving revision 1.1.2.12 retrieving revision 1.1.2.13 diff -u -r1.1.2.12 -r1.1.2.13 --- PropertyConsts.java 2 Oct 2002 01:26:53 - 1.1.2.12 +++ PropertyConsts.java 3 Oct 2002 03:14:29 - 1.1.2.13 @@ -235,13 +235,6 @@ } /** - * @return ttBitSet/tt of non-inherited properties - */ -public static BitSet getNonInheritedSet() { -return (BitSet)nonInheritedProps.clone(); -} - -/** * @param propertyIndex int index of the FO property * @return ttboolean/tt is property a shorthand? */ @@ -680,4 +673,3 @@ private PropertyConsts (){} } - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo FOPropertySets.java
pbwest 2002/10/02 20:16:51 Added: src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design FOPropertySets.java Log: Added inherited and non-inherited bitsets for sub-tree attribute sets, with initializers and accessors. Revision ChangesPath No revision No revision 1.1.2.1 +2259 -0 xml-fop/src/org/apache/fop/fo/Attic/FOPropertySets.java - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/fo ShorthandPropSets.java
pbwest 2002/10/02 20:23:32 Modified:src/org/apache/fop/fo Tag: FOP_0-20-0_Alt-Design ShorthandPropSets.java Log: Fixed initialization of shorthand and compound property bitmaps. Revision ChangesPath No revision No revision 1.1.2.2 +40 -3 xml-fop/src/org/apache/fop/fo/Attic/ShorthandPropSets.java Index: ShorthandPropSets.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/Attic/ShorthandPropSets.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- ShorthandPropSets.java2 Oct 2002 07:04:03 - 1.1.2.1 +++ ShorthandPropSets.java3 Oct 2002 03:23:32 - 1.1.2.2 @@ -13,6 +13,7 @@ import java.lang.CloneNotSupportedException; import java.util.Set; +import java.util.BitSet; import java.util.HashSet; import java.util.HashMap; import java.util.List; @@ -26,6 +27,7 @@ import org.apache.fop.datatypes.PropertyValueList; import org.apache.fop.fo.PropNames; import org.apache.fop.datastructs.ROIntArray; +import org.apache.fop.datastructs.ROBitSet; import org.apache.fop.datatypes.Ints; /** @@ -293,6 +295,18 @@ new ROIntArray(shorthands); /** + * A ttROBitSet/tt of the shorthand properties. + */ +public static final ROBitSet shorthandPropSet; +private static final BitSet shorthandpropset; +static { +shorthandpropset = new BitSet(PropNames.LAST_PROPERTY_INDEX + 1); +for (int i = 0; i shorthands.length; i++) +shorthandpropset.set(shorthands[i]); +shorthandPropSet = new ROBitSet(shorthandpropset); +} + +/** * Array of iROIntArray/ib in same order as ishorthands/i/b * iROIntArray/i. * If a public view of this is required, use @@ -774,6 +788,29 @@ public static final ROIntArray roCompounds; static { roCompounds = new ROIntArray(compounds); +} + +/** + * A ttROBitSet/tt of the compound properties. + */ +public static final ROBitSet compoundPropSet; +private static final BitSet compoundpropset; + +/** + * a ttROBitSet of shorthand and compound properties. + */ +public static final ROBitSet shorthandCompoundProps; +private static final BitSet shorthandcompoundprops; + +static { +compoundpropset = new BitSet(PropNames.LAST_PROPERTY_INDEX + 1); +for (int i = 0; i compounds.length; i++) +compoundpropset.set(compounds[i]); +compoundPropSet = new ROBitSet(compoundpropset); +shorthandcompoundprops = new BitSet(); +shorthandcompoundprops.or(compoundpropset); +shorthandcompoundprops.or(shorthandpropset); +shorthandCompoundProps = new ROBitSet(shorthandcompoundprops); } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/xml XMLNamespaces.java
pbwest 2002/10/02 20:27:29 Modified:src/org/apache/fop/xml Tag: FOP_0-20-0_Alt-Design XMLNamespaces.java Log: Fixed problem adding namespace. Revision ChangesPath No revision No revision 1.1.2.2 +6 -4 xml-fop/src/org/apache/fop/xml/Attic/XMLNamespaces.java Index: XMLNamespaces.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/xml/Attic/XMLNamespaces.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- XMLNamespaces.java16 Sep 2002 04:20:25 - 1.1.2.1 +++ XMLNamespaces.java3 Oct 2002 03:27:29 - 1.1.2.2 @@ -36,7 +36,7 @@ public static final int DefAttrNSIndex = 0; public static final int XSLNSpaceIndex = 1; public static final int SVGNSpaceIndex = 2; -public static final int XLinkNSpaceIndex = 1; +public static final int XLinkNSpaceIndex = 3; /** * A ttHashMap/tt mapping a namespace URI to an ttint/tt @@ -99,7 +99,9 @@ if (intg == null) { // update the indices i = uris.size(); +//System.out.println(Adding namespace + uri + + i); uriIndices.put(uri, Ints.consts.get(i)); +uris.add(i, uri); return i; } // not null - found the integer - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/datastructs SyncedCircularBuffer.java
pbwest 2002/10/02 20:29:02 Modified:src/org/apache/fop/datastructs Tag: FOP_0-20-0_Alt-Design SyncedCircularBuffer.java Log: Fixed exception message. Revision ChangesPath No revision No revision 1.1.2.2 +3 -3 xml-fop/src/org/apache/fop/datastructs/Attic/SyncedCircularBuffer.java Index: SyncedCircularBuffer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/datastructs/Attic/SyncedCircularBuffer.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- SyncedCircularBuffer.java 7 May 2002 04:37:53 - 1.1.2.1 +++ SyncedCircularBuffer.java 3 Oct 2002 03:29:02 - 1.1.2.2 @@ -99,7 +99,7 @@ synchronized (this) { Object obj; if (Thread.interrupted()) { -throw new InterruptedException(Producer interrupted); +throw new InterruptedException(Consumer interrupted); } if (pushBackBuf != null) { obj = pushBackBuf; - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/datastructs ROIntArray.java
pbwest 2002/10/02 20:30:34 Modified:src/org/apache/fop/datastructs Tag: FOP_0-20-0_Alt-Design ROIntArray.java Log: Fixed initialization problem with int[][] constructor. Revision ChangesPath No revision No revision 1.1.2.3 +9 -4 xml-fop/src/org/apache/fop/datastructs/Attic/ROIntArray.java Index: ROIntArray.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/datastructs/Attic/ROIntArray.java,v retrieving revision 1.1.2.2 retrieving revision 1.1.2.3 diff -u -r1.1.2.2 -r1.1.2.3 --- ROIntArray.java 18 Sep 2002 05:20:29 - 1.1.2.2 +++ ROIntArray.java 3 Oct 2002 03:30:34 - 1.1.2.3 @@ -43,8 +43,13 @@ i = 0; for (j = 0; j iarrays.length; j++) for (k = 0; k iarrays[j].length; k++) -iarray[i++] = iarrays[j][k]; -length = iarray.length; +i++; +length = i; +iarray = new int[length]; +i = 0; +for (j = 0; j iarrays.length; j++) +for (k = 0; k iarrays[j].length; k++) +iarray[i++] = iarrays[j][k]; } /** - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cvs commit: xml-fop/src/org/apache/fop/xml SyncedXmlEventsBuffer.java
pbwest 2002/10/02 20:37:27 Modified:src/org/apache/fop/xml Tag: FOP_0-20-0_Alt-Design SyncedXmlEventsBuffer.java Log: Rethrow InterruptedException directly. Revision ChangesPath No revision No revision 1.1.2.2 +4 -3 xml-fop/src/org/apache/fop/xml/Attic/SyncedXmlEventsBuffer.java Index: SyncedXmlEventsBuffer.java === RCS file: /home/cvs/xml-fop/src/org/apache/fop/xml/Attic/SyncedXmlEventsBuffer.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -u -r1.1.2.1 -r1.1.2.2 --- SyncedXmlEventsBuffer.java16 Sep 2002 04:20:24 - 1.1.2.1 +++ SyncedXmlEventsBuffer.java3 Oct 2002 03:37:26 - 1.1.2.2 @@ -72,7 +72,7 @@ //System.out.println(getEvent: + ev); return ev; } catch (InterruptedException e) { -throw new FOPException(InterruptedException); +throw new FOPException(e); } } @@ -221,6 +221,7 @@ public XMLEvent expectStartElement(int uriIndex, String localName) throws FOPException { +//System.out.println(In expectStartElement..); XMLEvent ev = getEvent(); if (ev != null (ev.type == XMLEvent.STARTELEMENT - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]