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 COFFMAN Steven <SC...@CBSINC.com> on 2000/10/25 17:56:17 UTC

Vote (was FOP with Xerces 1.2.1 compilation bug)

Oh yeah. org/w3c/dom/Node is xerces. Sorry. Kneejerk reaction. Thanks for
the catch.

Committers, (and Stefano) should we go to xerces 1.2.1 for the next release?
Since Cocoon 1.x doesn't work with FOP 0.15CVS already, should we try to
keep up with Cocoon 2.0 (which I think is going with XalanJ 2.0 and such?)
for support libraries?

Also, Cocoon 2.0 is targetting JDK 1.2. Does anyone know if or at what point
Xalan/Xerces goes to JDK 1.2? It might influence the decision.
-Steve

-----Original Message-----
From: Michael Lee [mailto:michaell@collegenet.com]
Sent: Wednesday, October 25, 2000 11:44 AM
To: fop-dev@xml.apache.org
Subject: Re: [BUG] Re: svg gradients


Yep, Xerces was the problem.  In xerces 1.2.0, the Node.java interface
function was called supports().  In 1.2.1, it's called isSupported().  I
added isSupported() to org/apache/fop/dom/NodeImpl.java to fix the
problem.

-Michael Lee

Michael Lee wrote:
> 
> Hmmm. I did do a clean checkout.
> 
> I'm using:
> Debian/Linux
> IBM JDK 1.3
> Xerces 1.2.1
> Xalan 1.2
> 
> I did just upgrade Xerces and Xalan to their latest versions.  Before, I
> was using
> Xerces 1.2.0 and Xalan 1.2_D02
> 
> I'll try downgrading each one.
> 
> -Michael Lee
> 
> COFFMAN Steven wrote:
> >
> > I just checked out a clean copy and it built fine. Did you just update
your
> > copy, or do it totally clean? What JDK, platform, etc. are you using?
> > -Steve
> >
> > -----Original Message-----
> > From: Michael Lee [mailto:michaell@collegenet.com]
> > Sent: Wednesday, October 25, 2000 10:46 AM
> > To: fop-dev@xml.apache.org
> > Subject: [BUG] Re: svg gradients
> >
> > Keiron Liddle wrote:
> > >
> > > I have attempted to make the linear gradients better.
> > > Currently it should handle
> > > - when x1, x2 etc. values are not specified
> > > - xlink:href to other linear gradients
> > > - different gradient units
> > >
> > > It can successfully pass the basic linear gradient tests.
> > >
> > > It doesn't handle
> > > - non-uniform colour spacings
> > > - spreadMethod (ie. reflect and repeat)
> > >
> > > I will next try to get the basic radial gradients working properly.
> > > And to try and make the code a bit easier to handle, at the moment the
> > > rendering is a bit of a mess.
> >
> > I just checked this code out of cvs and it will no longer compile.
> > Below is a shortened ANT output.  It seems that the Node interface
> > 'isSupported(String,String)' is not implemented in fop's node
> > implementations.
> >
> > michaell@terpsichore:~/src/xml-fop$ ./mybuild.sh
> >
> > 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:/u
> >
sr/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/Xalan/bsfengines.jar:/usr/local/jakarta-ant/lib/ant.jar:/usr/loc
> >
al/jakarta-ant/lib/parser.jar:/usr/local/jakarta-ant/lib/jaxp.jar:/usr/local
> >
/Jimi/JimiProClasses.zip:/usr/local/IBMJava2-13/lib/tools.jar:/usr/local/IBM
> > Java2-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
> >     [mkdir] Created dir: /home/michaell/src/xml-fop/build
> >     [mkdir] Created dir: /home/michaell/src/xml-fop/build/src
> >     [mkdir] Created dir:
> > /home/michaell/src/xml-fop/build/src/org/apache/fop/fo/properties
> >     [mkdir] Created dir:
> > /home/michaell/src/xml-fop/build/src/org/apache/fop/render/pdf/fonts
> >
> > codegen:
> > Resetting codegen directory
> >   [copydir] Copying 19 files to
> > /home/michaell/src/xml-fop/build/src/codegen
> > Generating the java files from xml resources
> > ============================
> > xslt
> > in: ./build/src/codegen/properties.xml
> > style: ./build/src/codegen/properties.xsl
> > out: ./build/src/org/apache/fop/fo/properties/ignore_this.java
> > ============================
> >
> > ...
> > ...
> > ...
> >
> > ============================
> >
> > prepare-xt:
> >
> > prepare-jimi:
> > Jimi library is present. Fop installs jimi support.
> >   [copydir] Copying 1 files to /home/michaell/src/xml-fop/build/src
> >
> > prepare-src:
> >   [copydir] Copying 306 files to /home/michaell/src/xml-fop/build/src
> >
> > compile:
> > Compiling the sources
> >     [mkdir] Created dir: /home/michaell/src/xml-fop/build/classes
> >     [javac] Compiling 419 source files to
> > /home/michaell/src/xml-fop/build/classes
> >     [javac]
> >     [javac] Found 1 semantic error compiling
> > "/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/NodeImpl.java":
> >     [javac]
> >     [javac]     63. public class NodeImpl implements Node {
> >     [javac]
> >     [javac]                      <------>
> >     [javac]
> >     [javac] *** Error: The abstract method "boolean
> > isSupported(java.lang.String $1, java.lang.String $2);", inherited from
> > type "org/w3c/dom/Node", is not implemented in the non-abstract class
> > "org/apache/fop/dom/NodeImpl".
> >     [javac]
> >     [javac] Found 1 semantic error compiling
> >
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/ElementImpl.java":
> >     [javac]
> >     [javac]     63. public class ElementImpl extends NodeImpl implements
> > Element {
> >     [javac]
> >     [javac]                      <--------->
> >     [javac]
> >     [javac] *** Error: The abstract method "boolean
> > isSupported(java.lang.String $1, java.lang.String $2);", inherited from
> > type "org/w3c/dom/Node", is not implemented in the non-abstract class
> > "org/apache/fop/dom/ElementImpl".
> >     [javac]
> >     [javac] Found 1 semantic error compiling
> >
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/svg/SVGDocumentImpl
> > .java":
> >     [javac]
> >     [javac]     64. public class SVGDocumentImpl extends ElementImpl
> > implements SVGDocument {
> >     [javac]
> >     [javac]                      <------------->
> >     [javac]
> >     [javac] *** Error: The abstract method "boolean
> > isSupported(java.lang.String $1, java.lang.String $2);", inherited from
> > type "org/w3c/dom/Node", is not implemented in the non-abstract class
> > "org/apache/fop/dom/svg/SVGDocumentImpl".
> >     [javac]
> >     [javac] Found 1 semantic error compiling
> >
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/svg/SVGSVGElementIm
> > pl.java":
> >     [javac]
> >     [javac]     73. public class SVGSVGElementImpl extends
> > GraphicElement implements SVGSVGElement {
> >     [javac]
> >     [javac]                      <--------------->
> >     [javac]
> >     [javac] *** Error: The abstract method "boolean
> > isSupported(java.lang.String $1, java.lang.String $2);", inherited from
> > type "org/w3c/dom/Node", is not implemented in the non-abstract class
> > "org/apache/fop/dom/svg/SVGSVGElementImpl".
> >     [javac]
> >     [javac] Found 1 semantic error compiling
> >
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/svg/SVGStyleElement
> > Impl.java":
> >     [javac]
> >     [javac]     63. public class SVGStyleElementImpl extends
> > GraphicElement implements SVGStyleElement {
> >     [javac]
> >     [javac]                      <----------------->
> >     [javac]
> >     [javac] *** Error: The abstract method "boolean
> > isSupported(java.lang.String $1, java.lang.String $2);", inherited from
> > type "org/w3c/dom/Node", is not implemented in the non-abstract class
> > "org/apache/fop/dom/svg/SVGStyleElementImpl".
> >     [javac]
> >     [javac] Found 1 semantic error compiling
> >
"/home/michaell/src/xml-fop/build/src/org/apache/fop/dom/svg/SVGSymbolElemen
> > tImpl.java":
> >     [javac]
> >     [javac]     59. public class SVGSymbolElementImpl extends
> > GraphicElement implements SVGSymbolElement {
> >     [javac]
> >     [javac]                      <------------------>
> >     [javac]
> >     [javac] *** Error: The abstract method "boolean
> > isSupported(java.lang.String $1, java.lang.String $2);", inherited from
> > type "org/w3c/dom/Node", is not implemented in the non-abstract class
> > "org/apache/fop/dom/svg/SVGSymbolElementImpl".

Re: Vote (was FOP with Xerces 1.2.1 compilation bug)

Posted by Stefano Mazzocchi <st...@apache.org>.
COFFMAN Steven wrote:
> 
> Oh yeah. org/w3c/dom/Node is xerces. Sorry. Kneejerk reaction. Thanks for
> the catch.
> 
> Committers, (and Stefano) should we go to xerces 1.2.1 for the next release?

Sorry, for the delay. I just got back from London. No talks about FOP,
neither people, too bad :(

> Since Cocoon 1.x doesn't work with FOP 0.15CVS already, should we try to
> keep up with Cocoon 2.0 (which I think is going with XalanJ 2.0 and such?)
> for support libraries?

Of course! BTW, why should you care about Xalan?
 
> Also, Cocoon 2.0 is targetting JDK 1.2. Does anyone know if or at what point
> Xalan/Xerces goes to JDK 1.2? It might influence the decision.

Not sure about Xalan, but I'd suppose that Xerces2 will go 1.2

Anyway, people, now that we have a decent JVM for FreeBSD, what's the
reason for keeping compatibility with 1.1? 

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<st...@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------