I am getting a compile error: compile-java: [javac] Compiling 426 source files to /home/mm/fop-ref/build/classes [javac] /home/mm/fop-ref/src/java/org/apache/fop/fo/extensions/svg/SVGElement.java:89: cannot find symbol [javac] symbol : method setDocumentURI(java.lang.String) [javac] location: class org.apache.batik.dom.svg.SVGOMDocument [javac] svgdoc.setDocumentURI(baseURL.toString()); [javac] ^ [javac] 1 error
Do we need a newer Batik version in the lib directory for this to work? Manuel On Thu, 1 Sep 2005 04:34 am, [EMAIL PROTECTED] wrote: > Author: jeremias > Date: Wed Aug 31 13:34:14 2005 > New Revision: 265578 > > URL: http://svn.apache.org/viewcvs?rev=265578&view=rev > Log: > Set not only the base URL for the SVG Document but also the URI. > Otherwise, relatively referenced documents or images inside an SVG > defined in a fo:instream-foreign-object don't get resolved. This > fixes certain problems with examples/fo/svg/external.fo. > > Modified: > > xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/svg/SVGEl >ement.java > > Modified: > xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/svg/SVGEl >ement.java URL: > http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apac >he/fop/fo/extensions/svg/SVGElement.java?rev=265578&r1=265577&r2=26557 >8&view=diff > ===================================================================== >========= --- > xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/svg/SVGEl >ement.java (original) +++ > xmlgraphics/fop/trunk/src/java/org/apache/fop/fo/extensions/svg/SVGEl >ement.java Wed Aug 31 13:34:14 2005 @@ -84,7 +84,9 @@ > ? new > java.io.File("").toURL().toExternalForm() > > : getUserAgent().getBaseURL()); > > if (baseURL != null) { > - ((SVGOMDocument)doc).setURLObject(baseURL); > + SVGOMDocument svgdoc = (SVGOMDocument)doc; > + svgdoc.setURLObject(baseURL); > + svgdoc.setDocumentURI(baseURL.toString()); > } > } catch (Exception e) { > getLogger().error("Could not set base URL for svg", e); > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [EMAIL PROTECTED] For additional > commands, e-mail: [EMAIL PROTECTED]