You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Karen Lease <kl...@club-internet.fr> on 2000/11/11 00:17:26 UTC

Properties Commit

Hi everybody,

Ouf! It's finally committed.
There's lots of new stuff in codegen and in the fo packages.
Look at docs/examples/fo/normalex.fo and inhprop.fo for some examples of
what you can do with property expressions.

The file src/codegen/properties.dtd is a commented DTD for the new
properties XML format. It should help to understand the changes from the
previous format.

Note: the following functions are not yet supported:
icc-color
system-color
system-font
label-end
body-start
merge-property-values
from-table-column

Have at it and yell about the bugs.

Regards,
Karen Lease

Re: Properties Commit

Posted by Karen Lease <kl...@club-internet.fr>.
Kelly,

Thanks for noticing that and taking care of it.
-Karen

Kelly Campbell wrote:
> 
> Karen,
> 
> I think I found a bug. If a property is a compound property, but the
> foproperties.xml doesn't account for that, an NPE gets thrown from the end
> of the makeList method in PropertyListBuilder where it adds the property
> to the hashtable because propVal is null.
> 
>  p.put(propName,propVal);
> 
> The example I ran into was a keep-with-next.within-columns property.
> 
> I wrapped the put with a check for a null propVal to fix this temporarily.
> 
> -Kelly
> 
> On Sat, Nov 11, 2000 at 12:17:26AM +0100, Karen Lease wrote:
> > Hi everybody,
> >
> > Ouf! It's finally committed.
> > There's lots of new stuff in codegen and in the fo packages.
> > Look at docs/examples/fo/normalex.fo and inhprop.fo for some examples of
> > what you can do with property expressions.
> >
> > The file src/codegen/properties.dtd is a commented DTD for the new
> > properties XML format. It should help to understand the changes from the
> > previous format.
> >
> > Note: the following functions are not yet supported:
> > icc-color
> > system-color
> > system-font
> > label-end
> > body-start
> > merge-property-values
> > from-table-column
> >
> > Have at it and yell about the bugs.
> >
> > Regards,
> > Karen Lease
> 
> --
> Kelly A. Campbell                        Software Engineer
> camk@channelpoint.com                    Channelpoint, Inc.
> camk@camk.net  camk@merlotxml.org        Colorado Springs, Co.

Re: Properties Commit

Posted by Kelly Campbell <ca...@camk.net>.
Karen,

I think I found a bug. If a property is a compound property, but the 
foproperties.xml doesn't account for that, an NPE gets thrown from the end 
of the makeList method in PropertyListBuilder where it adds the property 
to the hashtable because propVal is null.

 p.put(propName,propVal);

The example I ran into was a keep-with-next.within-columns property.

I wrapped the put with a check for a null propVal to fix this temporarily.

-Kelly

On Sat, Nov 11, 2000 at 12:17:26AM +0100, Karen Lease wrote:
> Hi everybody,
> 
> Ouf! It's finally committed.
> There's lots of new stuff in codegen and in the fo packages.
> Look at docs/examples/fo/normalex.fo and inhprop.fo for some examples of
> what you can do with property expressions.
> 
> The file src/codegen/properties.dtd is a commented DTD for the new
> properties XML format. It should help to understand the changes from the
> previous format.
> 
> Note: the following functions are not yet supported:
> icc-color
> system-color
> system-font
> label-end
> body-start
> merge-property-values
> from-table-column
> 
> Have at it and yell about the bugs.
> 
> Regards,
> Karen Lease

-- 
Kelly A. Campbell                        Software Engineer
camk@channelpoint.com                    Channelpoint, Inc.
camk@camk.net  camk@merlotxml.org        Colorado Springs, Co.

Re: Properties Commit

Posted by Karen Lease <kl...@club-internet.fr>.
Keiron Liddle wrote:
> 
> Karen Lease wrote:
> 
> >
> > Have at it and yell about the bugs.
> 
> Is there any particular reason that you removed the code to handle
> "rgb(123, 123, 12)" in ColorType.java.

It's now handled as part of the expression parsing (Color Functions,
sec. 5.10.2 in the XSL draft). At least for XSL FO objects, it still
works, using both percent based and numeric (0-255) arguments.

However, if it was also used for SVG stuff, I suppose I have broken it.
In that case, I apologize. SVG properties don't go through the
expression parser since I don't really know how they are supposed to be
handled. 

Karen

Re: Properties Commit

Posted by Keiron Liddle <ke...@aftexsw.com>.
Karen Lease wrote:

>
> Have at it and yell about the bugs.

Is there any particular reason that you removed the code to handle
"rgb(123, 123, 12)" in ColorType.java.



Re: Properties Commit

Posted by Karen Lease <kl...@club-internet.fr>.
Hi Michael,

Hmm, it looks like I should exclude the "ignore_this" files from the
javadoc target. They don't actually contain anything useful; they are
just placeholders so that the generated properties don't get remade on
every build.

Karen


Michael Lee wrote:
> 
> The javadocs are not compiling correctly.  Here's my output...
> 
> Fop Build System
> ----------------
> 
> Building with classpath
> /home/michaell/src/xml-fop/lib/w3c.jar:/home/michaell/src/xml-fop/build/fop.jar:.:/usr/local/jaf-1.0.1/activation.jar:/usr/local/javamail-1.1.3/mail.jar:/usr/local/IBMJava2-13/lib/tools.jar:/usr/local/IBMJava2-13/lib/pdflib.jar:/usr/local/NetComponents-1.3.8a/NetComponents.jar:/usr/local/jakarta-regexp-1.1/jakarta-regexp-1.1.jar:/usr/local/jakarta-oro-2.0/jakarta-oro-2.0.jar:/usr/IBMdb2/V7.1/java/db2java.zip:/usr/IBMdb2/V7.1/java/runtime.zip:/usr/local/xerces-1_2_1/xerces.jar:/usr/local/Xalan/xalan.jar:/usr/local/Xalan/bsf.jar:/usr/local/Jimi/JimiProClasses.zip:/usr/local/IBMJava2-13/lib/tools.jar:/usr/local/IBMJava2-13/lib/classes.zip:./lib/ant.jar:./lib/w3c.jar:./lib
> 
> Starting Ant...
> 
> Buildfile: build.xml
>     [chmod] The src attribute is deprecated. Please use the file
> attribute.
>     [chmod] The src attribute is deprecated. Please use the file
> attribute.
> 
> init:
> ------------------- Fop 0.15cvs [1999-2000] ----------------
> 
> prepare:
> Preparing the build directories
> 
> prepare-xt:
> 
> prepare-jimi:
> Jimi library is present. Fop installs jimi support.
> 
> prepare-src:
> 
> javadocs:
> Producing the javadoc files
>   [javadoc] Generating Javadoc
>   [javadoc] Parsing source files for packages
>   [javadoc] Could not evaluate package for
> /home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties/fo_ignore_this.java
>   [javadoc] Could not evaluate package for
> /home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties/svg_ignore_this.java
>   [javadoc] Could not evaluate package for
> /home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
>   [javadoc] Could not evaluate package for
> /home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java
>   [javadoc] Javadoc execution
>   [javadoc] Loading source files for package org.apache.fop.dom...
>   [javadoc] Loading source files for package org.apache.fop.pdf...
>   [javadoc] Loading source files for package org.apache.fop.dom.css...
>   [javadoc] Loading source files for package org.apache.fop.fo...
>   [javadoc] Loading source files for package
> org.apache.fop.render.awt...
>   [javadoc] Loading source files for package
> org.apache.fop.image.analyser...
>   [javadoc] Loading source files for package org.apache.fop.fonts...
>   [javadoc] Loading source files for package org.apache.fop.dom.svg...
>   [javadoc] Loading source files for package
> org.apache.fop.render.pdf...
>   [javadoc] Loading source files for package
> org.apache.fop.fo.pagination...
>   [javadoc] Loading source files for package
> org.apache.fop.dom.stylesheets...
>   [javadoc] Loading source files for package
> org.apache.fop.fonts.apps...
>   [javadoc] Loading source files for package org.apache.fop.image...
>   [javadoc] Loading source files for package org.apache.fop.messaging...
>   [javadoc] Loading source files for package org.apache.fop.layout...
>   [javadoc] Loading source files for package org.apache.fop.apps...
>   [javadoc] Loading source files for package org.apache.fop.render...
>   [javadoc] Loading source files for package
> org.apache.fop.render.xml...
>   [javadoc] Loading source files for package
> org.apache.fop.render.pdf.fonts...
>   [javadoc] Loading source files for package org.apache.fop.datatypes...
>   [javadoc] Loading source files for package org.apache.fop.viewer...
>   [javadoc] Loading source files for package org.apache.fop.svg...
>   [javadoc] Loading source files for package
> org.apache.fop.fo.properties...
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/svg_ignore_this.java:51: Class
> or interface declaration expected.
>   [javadoc]    tref
>   [javadoc]    ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:4:
> Class or interface declaration expected.
>   [javadoc]     generic-color
>   [javadoc]     ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:30:
> Invalid character in number.
>   [javadoc]     0pt
>   [javadoc]      ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:37:
> Invalid character in number.
>   [javadoc]     0pt
>   [javadoc]      ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:44:
> Invalid character in number.
>   [javadoc]     0.5pt
>   [javadoc]        ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:45:
> Invalid character in number.
>   [javadoc]     1pt
>   [javadoc]      ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:46:
> Invalid character in number.
>   [javadoc]     2pt
>   [javadoc]      ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:48:
> Invalid character in number.
>   [javadoc]     0pt
>   [javadoc]      ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:55:
> Invalid character in number.
>   [javadoc]     0.5pt
>   [javadoc]        ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:56:
> Invalid character in number.
>   [javadoc]     1pt
>   [javadoc]      ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:57:
> Invalid character in number.
>   [javadoc]     2pt
>   [javadoc]      ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:59:
> Invalid character in number.
>   [javadoc]     0pt
>   [javadoc]      ^
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:99:
> Invalid character in number.
>   [javadoc]     0pt
>   [javadoc]      ^
>   [javadoc] Loading source files for package org.apache.fop.fo.expr...
>   [javadoc] Loading source files for package org.apache.fop.fo.flow...
>   [javadoc]
> /build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java:51:
> Class or interface declaration expected.
>   [javadoc]    tref
>   [javadoc]    ^
>   [javadoc] 14 errors
>   [javadoc] Result: 1
> 
> BUILD SUCCESSFUL
> 
> Total time: 10 seconds
> 
> Karen Lease wrote:
> >
> > Hi everybody,
> >
> > Ouf! It's finally committed.
> > There's lots of new stuff in codegen and in the fo packages.
> > Look at docs/examples/fo/normalex.fo and inhprop.fo for some examples of
> > what you can do with property expressions.
> >
> > The file src/codegen/properties.dtd is a commented DTD for the new
> > properties XML format. It should help to understand the changes from the
> > previous format.
> >
> > Note: the following functions are not yet supported:
> > icc-color
> > system-color
> > system-font
> > label-end
> > body-start
> > merge-property-values
> > from-table-column
> >
> > Have at it and yell about the bugs.
> >
> > Regards,
> > Karen Lease

Re: Properties Commit

Posted by Michael Lee <mi...@collegenet.com>.
The javadocs are not compiling correctly.  Here's my output...


Fop Build System
----------------

Building with classpath
/home/michaell/src/xml-fop/lib/w3c.jar:/home/michaell/src/xml-fop/build/fop.jar:.:/usr/local/jaf-1.0.1/activation.jar:/usr/local/javamail-1.1.3/mail.jar:/usr/local/IBMJava2-13/lib/tools.jar:/usr/local/IBMJava2-13/lib/pdflib.jar:/usr/local/NetComponents-1.3.8a/NetComponents.jar:/usr/local/jakarta-regexp-1.1/jakarta-regexp-1.1.jar:/usr/local/jakarta-oro-2.0/jakarta-oro-2.0.jar:/usr/IBMdb2/V7.1/java/db2java.zip:/usr/IBMdb2/V7.1/java/runtime.zip:/usr/local/xerces-1_2_1/xerces.jar:/usr/local/Xalan/xalan.jar:/usr/local/Xalan/bsf.jar:/usr/local/Jimi/JimiProClasses.zip:/usr/local/IBMJava2-13/lib/tools.jar:/usr/local/IBMJava2-13/lib/classes.zip:./lib/ant.jar:./lib/w3c.jar:./lib

Starting Ant...

Buildfile: build.xml
    [chmod] The src attribute is deprecated. Please use the file
attribute.
    [chmod] The src attribute is deprecated. Please use the file
attribute.

init:
------------------- Fop 0.15cvs [1999-2000] ----------------

prepare:
Preparing the build directories

prepare-xt:

prepare-jimi:
Jimi library is present. Fop installs jimi support.

prepare-src:

javadocs:
Producing the javadoc files 
  [javadoc] Generating Javadoc
  [javadoc] Parsing source files for packages
  [javadoc] Could not evaluate package for
/home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties/fo_ignore_this.java
  [javadoc] Could not evaluate package for
/home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties/svg_ignore_this.java
  [javadoc] Could not evaluate package for
/home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties/foenums_ignore_this.java
  [javadoc] Could not evaluate package for
/home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java
  [javadoc] Javadoc execution
  [javadoc] Loading source files for package org.apache.fop.dom...
  [javadoc] Loading source files for package org.apache.fop.pdf...
  [javadoc] Loading source files for package org.apache.fop.dom.css...
  [javadoc] Loading source files for package org.apache.fop.fo...
  [javadoc] Loading source files for package
org.apache.fop.render.awt...
  [javadoc] Loading source files for package
org.apache.fop.image.analyser...
  [javadoc] Loading source files for package org.apache.fop.fonts...
  [javadoc] Loading source files for package org.apache.fop.dom.svg...
  [javadoc] Loading source files for package
org.apache.fop.render.pdf...
  [javadoc] Loading source files for package
org.apache.fop.fo.pagination...
  [javadoc] Loading source files for package
org.apache.fop.dom.stylesheets...
  [javadoc] Loading source files for package
org.apache.fop.fonts.apps...
  [javadoc] Loading source files for package org.apache.fop.image...
  [javadoc] Loading source files for package org.apache.fop.messaging...
  [javadoc] Loading source files for package org.apache.fop.layout...
  [javadoc] Loading source files for package org.apache.fop.apps...
  [javadoc] Loading source files for package org.apache.fop.render...
  [javadoc] Loading source files for package
org.apache.fop.render.xml...
  [javadoc] Loading source files for package
org.apache.fop.render.pdf.fonts...
  [javadoc] Loading source files for package org.apache.fop.datatypes...
  [javadoc] Loading source files for package org.apache.fop.viewer...
  [javadoc] Loading source files for package org.apache.fop.svg...
  [javadoc] Loading source files for package
org.apache.fop.fo.properties...
  [javadoc]
./build/src/org/apache/fop/fo/properties/svg_ignore_this.java:51: Class
or interface declaration expected.
  [javadoc]    tref
  [javadoc]    ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:4:
Class or interface declaration expected.
  [javadoc]     generic-color
  [javadoc]     ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:30:
Invalid character in number.
  [javadoc]     0pt
  [javadoc]      ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:37:
Invalid character in number.
  [javadoc]     0pt
  [javadoc]      ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:44:
Invalid character in number.
  [javadoc]     0.5pt
  [javadoc]        ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:45:
Invalid character in number.
  [javadoc]     1pt
  [javadoc]      ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:46:
Invalid character in number.
  [javadoc]     2pt
  [javadoc]      ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:48:
Invalid character in number.
  [javadoc]     0pt
  [javadoc]      ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:55:
Invalid character in number.
  [javadoc]     0.5pt
  [javadoc]        ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:56:
Invalid character in number.
  [javadoc]     1pt
  [javadoc]      ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:57:
Invalid character in number.
  [javadoc]     2pt
  [javadoc]      ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:59:
Invalid character in number.
  [javadoc]     0pt
  [javadoc]      ^
  [javadoc]
./build/src/org/apache/fop/fo/properties/foenums_ignore_this.java:99:
Invalid character in number.
  [javadoc]     0pt
  [javadoc]      ^
  [javadoc] Loading source files for package org.apache.fop.fo.expr...
  [javadoc] Loading source files for package org.apache.fop.fo.flow...
  [javadoc]
./build/src/org/apache/fop/fo/properties/svgenums_ignore_this.java:51:
Class or interface declaration expected.
  [javadoc]    tref
  [javadoc]    ^
  [javadoc] 14 errors
  [javadoc] Result: 1

BUILD SUCCESSFUL

Total time: 10 seconds


Karen Lease wrote:
> 
> Hi everybody,
> 
> Ouf! It's finally committed.
> There's lots of new stuff in codegen and in the fo packages.
> Look at docs/examples/fo/normalex.fo and inhprop.fo for some examples of
> what you can do with property expressions.
> 
> The file src/codegen/properties.dtd is a commented DTD for the new
> properties XML format. It should help to understand the changes from the
> previous format.
> 
> Note: the following functions are not yet supported:
> icc-color
> system-color
> system-font
> label-end
> body-start
> merge-property-values
> from-table-column
> 
> Have at it and yell about the bugs.
> 
> Regards,
> Karen Lease